SPB Git forge

spb/qc-election

Public
20commits 1branches 0releases
4.9 MBsize
maindefault branch
20 days agolast push
Python 66.6% HTML 24.8% CSS 4.9% JavaScript 3.6%

pages : accepter HEAD (crawlers de partage og) — GET+HEAD sur les 11 routes

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Simon-Pierre Boucher committed 23 days ago (Sep 1, 2026) parent 07941ca

1 changed file +2 −1

modified backend/app/main.py +2 −1
@@ -119,6 +119,7 @@ for page in PAGES:
119 119 return HTMLResponse(_render_page(p),
120 120 headers={"Cache-Control": "no-cache"})
121 121 return handler
122 − app.get(path, include_in_schema=False)(make_handler())
122 + app.api_route(path, methods=["GET", "HEAD"],
123 + include_in_schema=False)(make_handler())
123 124
124 125 app.mount("/assets", StaticFiles(directory=FRONTEND_DIR / "assets"), name="assets")
125 126