Delete app/api/endpoints/register.py
This commit is contained in:
parent
77f3648d8f
commit
249215622b
@ -1,14 +0,0 @@
|
|||||||
from fastapi import APIRouter, HTTPException
|
|
||||||
from pydantic import BaseModel
|
|
||||||
|
|
||||||
router = APIRouter()
|
|
||||||
|
|
||||||
class UserRegistration(BaseModel):
|
|
||||||
username: str
|
|
||||||
password: str
|
|
||||||
email: str
|
|
||||||
|
|
||||||
@router.post("/register")
|
|
||||||
async def register(user: UserRegistration):
|
|
||||||
|
|
||||||
return {"message": "User registered successfully", "user": user.username}
|
|
Loading…
x
Reference in New Issue
Block a user