22 lines
722 B
Python
22 lines
722 B
Python
from django.urls import include, path
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from apps.reports.api.views import (
|
|
ReportChartView,
|
|
ReportDayDetailsView,
|
|
ReportExportJobViewSet,
|
|
ReportTableView,
|
|
ReportUserSummaryView,
|
|
)
|
|
|
|
router = DefaultRouter()
|
|
router.register(r"exports", ReportExportJobViewSet, basename="report-export-job")
|
|
|
|
urlpatterns = [
|
|
path("chart/", ReportChartView.as_view(), name="report-chart"),
|
|
path("table/", ReportTableView.as_view(), name="report-table"),
|
|
path("day-details/", ReportDayDetailsView.as_view(), name="report-day-details"),
|
|
path("user-summary/", ReportUserSummaryView.as_view(), name="report-user-summary"),
|
|
path("", include(router.urls)),
|
|
]
|