From 42bf7519968223897c41e25b56db6b337e0bf04a Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 7 Mar 2025 18:09:55 +0000 Subject: [PATCH] feat: Add endpoint /new-endpointss --- app/api/endpoints/new-endpointss.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/api/endpoints/new-endpointss.py diff --git a/app/api/endpoints/new-endpointss.py b/app/api/endpoints/new-endpointss.py new file mode 100644 index 0000000..c1f3241 --- /dev/null +++ b/app/api/endpoints/new-endpointss.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.post("/signup") +async def signup(user: UserRegistration): + return {"message": "User registered successfully. Whooo!", "user": user.username} \ No newline at end of file