From da1b579d4f716a0c93ec123f4d3fd882ff7df535 Mon Sep 17 00:00:00 2001 From: toto Date: Fri, 10 Apr 2026 14:17:38 +0200 Subject: [PATCH] fix(dashboard): rename duplicate /api/browsers route to /api/browser-signatures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La route /api/browsers existait déjà (distribution JA4 par famille). La nouvelle route du browser_matcher était en conflit — FastAPI utilisait la première définition. Renommage en /api/browser-signatures. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- services/dashboard/backend/routes/api.py | 4 ++-- services/dashboard/backend/templates/browsers.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/dashboard/backend/routes/api.py b/services/dashboard/backend/routes/api.py index 514c89a..8f65fdb 100644 --- a/services/dashboard/backend/routes/api.py +++ b/services/dashboard/backend/routes/api.py @@ -1685,8 +1685,8 @@ async def health_metrics() -> dict[str, Any]: } -@router.get("/browsers") -async def browsers() -> dict[str, Any]: +@router.get("/browser-signatures") +async def browser_signatures() -> dict[str, Any]: """Analyse des signatures navigateur passives (browser_matcher, §4). Exploite les colonnes H2 de view_ai_features_1h : diff --git a/services/dashboard/backend/templates/browsers.html b/services/dashboard/backend/templates/browsers.html index 8c3b01e..e5c83a6 100644 --- a/services/dashboard/backend/templates/browsers.html +++ b/services/dashboard/backend/templates/browsers.html @@ -223,7 +223,7 @@ async function loadBrowserData() { let data; try { - const r = await fetch('/api/browsers'); + const r = await fetch('/api/browser-signatures'); if (!r.ok) throw new Error(r.statusText); data = await r.json(); } catch (e) {