feat: Add endpoint api/v1/users

This commit is contained in:
Backend IM Bot 2025-03-06 19:03:57 +00:00
parent b92e35db55
commit 8a5bf1d18a

View File

@ -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}