fix(dashboard): rename duplicate /api/browsers route to /api/browser-signatures
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>
This commit is contained in:
@ -1685,8 +1685,8 @@ async def health_metrics() -> dict[str, Any]:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@router.get("/browsers")
|
@router.get("/browser-signatures")
|
||||||
async def browsers() -> dict[str, Any]:
|
async def browser_signatures() -> dict[str, Any]:
|
||||||
"""Analyse des signatures navigateur passives (browser_matcher, §4).
|
"""Analyse des signatures navigateur passives (browser_matcher, §4).
|
||||||
|
|
||||||
Exploite les colonnes H2 de view_ai_features_1h :
|
Exploite les colonnes H2 de view_ai_features_1h :
|
||||||
|
|||||||
@ -223,7 +223,7 @@
|
|||||||
async function loadBrowserData() {
|
async function loadBrowserData() {
|
||||||
let data;
|
let data;
|
||||||
try {
|
try {
|
||||||
const r = await fetch('/api/browsers');
|
const r = await fetch('/api/browser-signatures');
|
||||||
if (!r.ok) throw new Error(r.statusText);
|
if (!r.ok) throw new Error(r.statusText);
|
||||||
data = await r.json();
|
data = await r.json();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user