pages : accepter HEAD (crawlers de partage og) — GET+HEAD sur les 11 routes
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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 | |