feat: Add endpoint person
This commit is contained in:
parent
96cd2cf1a4
commit
a830bebd07
13
app/api/endpoints/person.py
Normal file
13
app/api/endpoints/person.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
from fastapi import APIRouter, HTTPException
|
||||||
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
router = APIRouter()
|
||||||
|
|
||||||
|
class UserRegistration(BaseModel):
|
||||||
|
username: str
|
||||||
|
password: str
|
||||||
|
email: str
|
||||||
|
|
||||||
|
@router.put("/people")
|
||||||
|
async def people(user: UserRegistration):
|
||||||
|
return {"message": "User registered successfully", "user": user.username}
|
Loading…
x
Reference in New Issue
Block a user