feat: update frontend paths to include trailing slashes for consistency
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user