feat: Add endpoint /books/

This commit is contained in:
Backend IM Bot 2025-03-09 07:47:38 -05:00
parent 33fd161432
commit 8c64a82f21

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", "user": user.username}