blob: de8c55b4f62228e715f77b7da88d1a3ea3d2444b [file] [log] [blame]
from django.conf.urls import url
from . import views
from . import rest_endpoints
urlpatterns = [
url(r'^device/$',
views.device_stats,
name='hiccup_stats_device'),
url(r'^$',
views.home,
name='device'),
url(r'^api/v1/device_overview/(?P<uuid>[a-f0-9-]+)/$',
rest_endpoints.DeviceStat.as_view(),
name='hiccup_stats_api_v1_device_overview'),
url(r'^api/v1/device_update_history/(?P<uuid>[a-f0-9-]+)/$',
rest_endpoints.DeviceUpdateHistory.as_view(),
name='hiccup_stats_api_v1_device_update_history'),
url(r'^api/v1/device_report_history/(?P<uuid>[a-f0-9-]+)/$',
rest_endpoints.DeviceReportHistory.as_view(),
name='hiccup_stats_api_v1_device_report_history'),
url(r'^api/v1/logfile_download/(?P<id>[0-9]+)/$',
rest_endpoints.LogFileDownload.as_view(),
name='hiccup_stats_api_v1_logfile_download'),
]