10 lines
250 B
Python
10 lines
250 B
Python
from fastapi import APIRouter
|
|
|
|
#this is the router
|
|
router = APIRouter()
|
|
|
|
@router.post("/login")
|
|
async def login(username: str, password: str):
|
|
return {"message": "User logged in successfully", "username": username}
|
|
|
|
#here you can add other things |