Delete app/api/endpoints/register.py

This commit is contained in:
backend.im 2025-03-06 03:41:29 +00:00
parent 77f3648d8f
commit 249215622b

View File

@ -1,14 +0,0 @@
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}