14 lines
401 B
Python
14 lines
401 B
Python
from django.urls import path
|
|
from .views import (
|
|
DeviceLogListAPIView,
|
|
DeviceInfoListAPIView,
|
|
DeviceLogStatisticAPIView,
|
|
)
|
|
|
|
|
|
app_name = 'counter-api'
|
|
urlpatterns = [
|
|
path('logs/', DeviceLogListAPIView.as_view(), name='logs'),
|
|
path('device/', DeviceInfoListAPIView.as_view(), name='device'),
|
|
path('logs/statistic', DeviceLogStatisticAPIView.as_view(), name='logs-statistic'),
|
|
] |