feat / AEB-66 create dashboard api

This commit is contained in:
Timofey
2025-10-13 12:06:23 +03:00
parent d0f1ae26a9
commit ea1f50c1b8
6 changed files with 194 additions and 76 deletions

View File

@@ -3,6 +3,7 @@ from .views.UserDataView import UserDataView
from .views.objects_views import ObjectView
from .views.sensors_views import SensorView
from .views.alert_views import AlertView, ReportView
from .views.dashboard_views import DashboardView
from drf_spectacular.views import (
SpectacularAPIView,
SpectacularSwaggerView,
@@ -33,4 +34,6 @@ urlpatterns = [
path("update-alert/<int:pk>/", AlertView.as_view({'patch': 'change_alert_status'}), name="update-alert"),
path("get-reports/", ReportView.as_view({'post': 'get_reports'}), name="reports"),
path("get-dashboard/", DashboardView.as_view(), name="dashboard"),
]