feat: Add logging for available routes in the main app for debugging purposes

This commit is contained in:
Slipstream 2025-05-14 17:14:05 -06:00
parent 65ccfeba91
commit 7799588aaa
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -608,6 +608,11 @@ async def verify_discord_token(authorization: str = Header(None)) -> str:
# ============= API Endpoints ============= # ============= API Endpoints =============
# Log the available routes for debugging
log.info("Available routes in main app:")
for route in app.routes:
log.info(f" {route.path} - {route.name} - {route.methods}")
@app.get("/") @app.get("/")
async def root(): async def root():
return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ", status_code=301) return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ", status_code=301)