♻️ Order matters; reorder endpoints
This commit is contained in:
parent
8543957095
commit
b5b005448a
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue