diff --git a/app/api/endpoints/book.py b/app/api/endpoints/book.py index e69de29..a8056b4 100644 --- a/app/api/endpoints/book.py +++ b/app/api/endpoints/book.py @@ -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} \ No newline at end of file