feat: Add endpoint /your

This commit is contained in:
Backend IM Bot 2025-03-07 18:56:18 +00:00
parent 74409b2554
commit 77cec2cbdf

13
app/api/endpoints/your.py Normal file
View 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.post("/signup")
async def signup(user: UserRegistration):
return {"message": "User registered successfully. Whooo!", "user": user.username}