From 7799588aaaf35628e6125cc9a54d4a5464db29ad Mon Sep 17 00:00:00 2001 From: Slipstream Date: Wed, 14 May 2025 17:14:05 -0600 Subject: [PATCH] feat: Add logging for available routes in the main app for debugging purposes --- api_service/api_server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api_service/api_server.py b/api_service/api_server.py index 888df8e..d822763 100644 --- a/api_service/api_server.py +++ b/api_service/api_server.py @@ -608,6 +608,11 @@ async def verify_discord_token(authorization: str = Header(None)) -> str: # ============= 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("/") async def root(): return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ", status_code=301)