blob: de8c55b4f62228e715f77b7da88d1a3ea3d2444b [file] [log] [blame]
Dirk Vogt62ff7f22017-05-04 16:07:21 +02001from django.conf.urls import url
2from . import views
3from . import rest_endpoints
4
5
6urlpatterns = [
7 url(r'^device/$',
8 views.device_stats,
Dirk Vogt57a615d2017-05-04 22:29:54 +02009 name='hiccup_stats_device'),
10 url(r'^$',
11 views.home,
Dirk Vogt62ff7f22017-05-04 16:07:21 +020012 name='device'),
13 url(r'^api/v1/device_overview/(?P<uuid>[a-f0-9-]+)/$',
14 rest_endpoints.DeviceStat.as_view(),
15 name='hiccup_stats_api_v1_device_overview'),
16 url(r'^api/v1/device_update_history/(?P<uuid>[a-f0-9-]+)/$',
17 rest_endpoints.DeviceUpdateHistory.as_view(),
18 name='hiccup_stats_api_v1_device_update_history'),
19 url(r'^api/v1/device_report_history/(?P<uuid>[a-f0-9-]+)/$',
20 rest_endpoints.DeviceReportHistory.as_view(),
21 name='hiccup_stats_api_v1_device_report_history'),
22 url(r'^api/v1/logfile_download/(?P<id>[0-9]+)/$',
23 rest_endpoints.LogFileDownload.as_view(),
24 name='hiccup_stats_api_v1_logfile_download'),
25]