fix swagger

This commit is contained in:
Ishaan Jaff 2024-06-15 12:22:16 -07:00
parent b1599c3f40
commit 2dcc484e5d

View file

@ -10688,7 +10688,11 @@ async def get_routes():
#### TEST ENDPOINTS ####
@router.get("/token/generate", dependencies=[Depends(user_api_key_auth)])
@router.get(
"/token/generate",
dependencies=[Depends(user_api_key_auth)],
include_in_schema=False,
)
async def token_generate():
"""
Test endpoint. Admin-only access. Meant for generating admin tokens with specific claims and testing if they work for creating keys, etc.