Analyse: Statistik-Abruf auf richtigen Pfad + Vertragstest

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-10-01 13:32:21 +00:00
1 parent b193b327ab
commit ab4c53d6df
3 files changed
+67 -5

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ export function createAnalyticsClient(opts = {}) {
return request('DELETE', sitePath(siteKey))
},
getStats(siteKey, range) {
return request('GET', `${sitePath(siteKey)}/stats?range=${encodeURIComponent(range)}`)
return request('GET', `/a/admin/stats/${encodeURIComponent(siteKey)}?range=${encodeURIComponent(range)}`)
},
// Format (R3): <b64url(JSON {s,p,v,e})>.<hex HMAC-SHA256(heatSecret, b64part)>, byte-gleich zu analytics/src/heat.js
heatToken({ siteKey, path, vp, now = Date.now() }) {