From 8bcd9c5885f3ba913d0456a83dc048442853dc09 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 7 Mar 2025 18:55:19 +0000 Subject: [PATCH] feat: Add endpoint /your-endpoint --- app/api/endpoints/your-endpoint.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/api/endpoints/your-endpoint.py diff --git a/app/api/endpoints/your-endpoint.py b/app/api/endpoints/your-endpoint.py new file mode 100644 index 0000000..c1f3241 --- /dev/null +++ b/app/api/endpoints/your-endpoint.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