feat: Update endpoint /book

This commit is contained in:
Backend IM Bot 2025-03-13 14:19:07 -05:00
parent c3bbaa539a
commit 6184ad8ef5

View File

@ -0,0 +1,12 @@
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", "user": user.username}