feat(analytics): E0-lite 数据健康端点——数据截至+实体新鲜度

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-04 15:37:13 +08:00
parent 8b29326b2e
commit 0b1d377db7
5 changed files with 116 additions and 0 deletions
+3
View File
@@ -21,6 +21,7 @@ Includes:
* ``GET /api/search`` (see :mod:`app.api.routers.search`).
* ``GET /api/export/chat-html`` (see :mod:`app.api.routers.export`).
* ``GET /api/staff-stats`` (see :mod:`app.api.routers.staff_stats`).
* ``GET /api/analytics/health`` (see :mod:`app.api.routers.analytics`).
CORS is configured to read explicit allowed origins from ``Settings.cors_origins``
(comma-separated ``CORS_ORIGINS`` env var). Empty (default) falls back to the dev
@@ -42,6 +43,7 @@ from fastapi.middleware.cors import CORSMiddleware
from app.api.auth import require_auth
from app.api.routers import (
analytics,
calls,
customer,
export,
@@ -98,6 +100,7 @@ app.include_router(search.router)
app.include_router(sessions.router)
app.include_router(export.router)
app.include_router(voice_clips.router)
app.include_router(analytics.router)
@app.get("/api/health")