feat: update frontend paths to include trailing slashes for consistency

This commit is contained in:
EmanueleAlfano
2026-02-04 14:33:09 +01:00
parent 458b074f45
commit 145a091dc3
6 changed files with 67 additions and 11 deletions

View File

@@ -87,6 +87,7 @@ def create_app(data: dict, serve_frontend: bool = True) -> FastAPI:
# Serve index.html su /badge e sue sub-route
@app.get("/badge")
@app.get("/badge/") # Con trailing slash per Playwright
async def serve_badge_index():
return FileResponse(STATIC_DIR / "index.html")