diff --git a/app/api/endpoints/states.py b/app/api/endpoints/states.py new file mode 100644 index 0000000..4367e44 --- /dev/null +++ b/app/api/endpoints/states.py @@ -0,0 +1,17 @@ +from fastapi import APIRouter, HTTPException +from pydantic import BaseModel + +router = APIRouter() + +class UserRegistration(BaseModel): + username: str + password: str + email: str + +@router.get("/countries") +async def get_countries(user: UserRegistration): + return {"message": "User registered successfully", "user": user.username} + +@router.delete("/countries") +async def delete_countries(user: UserRegistration): + return {"message": "User registered successfully", "user": user.username} \ No newline at end of file