from fastapi import APIRouter router = APIRouter() @router.post("/forgot-password") async def forgot_password(username: str, password: str): return {"message": "Forgot password!", "username": username}