From a830bebd07a94cb01f148651c34257fd7a175bd2 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Sun, 9 Mar 2025 12:47:31 +0100 Subject: [PATCH] feat: Add endpoint person --- app/api/endpoints/person.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/api/endpoints/person.py diff --git a/app/api/endpoints/person.py b/app/api/endpoints/person.py new file mode 100644 index 0000000..5aedb33 --- /dev/null +++ b/app/api/endpoints/person.py @@ -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} \ No newline at end of file