diff --git a/app/api/endpoints/api/v1/users.py b/app/api/endpoints/api/v1/users.py new file mode 100644 index 0000000..dfd4201 --- /dev/null +++ b/app/api/endpoints/api/v1/users.py @@ -0,0 +1,14 @@ +from fastapi import APIRouter, HTTPException +from pydantic import BaseModel + +router = APIRouter() + +class UserRegistration(BaseModel): + username: str + password: str + email: str + +@router.post("/register") +async def register(user: UserRegistration): + + return {"message": "User registered successfully", "user": user.username} \ No newline at end of file