Files
qlockify-backend-deployment/apps/reports/api/urls.py

21 lines
608 B
Python

from django.urls import include, path
from rest_framework.routers import DefaultRouter
from apps.reports.api.views import (
ReportChartView,
ReportDayDetailsView,
ReportExportJobViewSet,
ReportTableView,
)
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("", include(router.urls)),
]