Add missing leaderboard.js static file route

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Aaron D. Lee 2026-01-27 11:53:38 -05:00
parent 93b753dedb
commit 546e63ffed

View File

@ -970,6 +970,10 @@ if os.path.exists(client_path):
async def serve_animation_queue(): async def serve_animation_queue():
return FileResponse(os.path.join(client_path, "animation-queue.js"), media_type="application/javascript") return FileResponse(os.path.join(client_path, "animation-queue.js"), media_type="application/javascript")
@app.get("/leaderboard.js")
async def serve_leaderboard_js():
return FileResponse(os.path.join(client_path, "leaderboard.js"), media_type="application/javascript")
# Admin dashboard # Admin dashboard
@app.get("/admin") @app.get("/admin")
async def serve_admin(): async def serve_admin():