feat: Add logging for available routes in the main app for debugging purposes
This commit is contained in:
parent
65ccfeba91
commit
7799588aaa
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user