from fastapi import APIRouter router = APIRouter() @router.get('/auth/') async def get_user(): return {'user': 'authenticated'}