♻️ Order matters; reorder endpoints

This commit is contained in:
Brian Wiborg 2025-09-27 16:15:16 +02:00
parent 8543957095
commit b5b005448a
No known key found for this signature in database

View file

@ -152,6 +152,11 @@ async def refresh_token(refresh_token: str):
return {"access_token": new_access, "token_type": "bearer"} return {"access_token": new_access, "token_type": "bearer"}
@router.get("/introspect")
async def introspect(token: Dict = Depends(get_token)):
return token
@router.get("/me") @router.get("/me")
async def me(user: User = Depends(get_current_user)): async def me(user: User = Depends(get_current_user)):
"""Return the currently authenticated user.""" """Return the currently authenticated user."""
@ -163,6 +168,3 @@ async def me(user: User = Depends(get_current_user)):
} }
@router.get("/introspect")
async def introspect(token: Dict = Depends(get_token)):
return token