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