From b2a955558b10c2f100e5f9ae4896b4f5a5835a0e Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Sun, 9 Mar 2025 12:54:44 +0100 Subject: [PATCH] feat: Add endpoint states --- app/api/endpoints/states.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app/api/endpoints/states.py 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