HH/apps/analytics/urls.py
2026-02-22 08:35:53 +03:00

25 lines
1.3 KiB
Python

from django.urls import path
from . import ui_views, kpi_views
app_name = 'analytics'
urlpatterns = [
# UI Views
path('dashboard/', ui_views.analytics_dashboard, name='dashboard'),
path('kpis/', ui_views.kpi_list, name='kpi_list'),
# Command Center - Unified Dashboard
path('command-center/', ui_views.command_center, name='command_center'),
path('api/command-center/', ui_views.command_center_api, name='command_center_api'),
path('api/command-center/export/<str:export_format>/', ui_views.export_command_center, name='command_center_export'),
# KPI Reports
path('kpi-reports/', kpi_views.kpi_report_list, name='kpi_report_list'),
path('kpi-reports/generate/', kpi_views.kpi_report_generate, name='kpi_report_generate'),
path('kpi-reports/generate/submit/', kpi_views.kpi_report_generate_submit, name='kpi_report_generate_submit'),
path('kpi-reports/<uuid:report_id>/', kpi_views.kpi_report_detail, name='kpi_report_detail'),
path('kpi-reports/<uuid:report_id>/pdf/', kpi_views.kpi_report_pdf, name='kpi_report_pdf'),
path('kpi-reports/<uuid:report_id>/regenerate/', kpi_views.kpi_report_regenerate, name='kpi_report_regenerate'),
path('api/kpi-reports/<uuid:report_id>/data/', kpi_views.kpi_report_api_data, name='kpi_report_api_data'),
]