feat: Update endpoint /lmaoooo
This commit is contained in:
parent
f6be777bd8
commit
8b489bf35e
@ -1,13 +1 @@
|
|||||||
from fastapi import APIRouter, HTTPException
|
new edit
|
||||||
from pydantic import BaseModel
|
|
||||||
|
|
||||||
router = APIRouter()
|
|
||||||
|
|
||||||
class UserRegistration(BaseModel):
|
|
||||||
username: str
|
|
||||||
password: str
|
|
||||||
email: str
|
|
||||||
|
|
||||||
@router.post("/signup")
|
|
||||||
async def signup(user: UserRegistration):
|
|
||||||
return {"message": "User registered successfully. Whooo!", "user": user.username}
|
|
Loading…
x
Reference in New Issue
Block a user