10 lines
252 B
Python
10 lines
252 B
Python
from fastapi import APIRouter
|
|
|
|
router = APIRouter()
|
|
|
|
@router.post("/login")
|
|
something like this I guess;
|
|
another edited response
|
|
async def login(username: str, password: str):
|
|
return {"message": "User logged in successfully", "username": username}
|