Dirk Vogt | 62ff7f2 | 2017-05-04 16:07:21 +0200 | [diff] [blame^] | 1 | from django.conf.urls import url |
| 2 | from . import views |
| 3 | from . import rest_endpoints |
| 4 | |
| 5 | |
| 6 | urlpatterns = [ |
| 7 | url(r'^device/$', |
| 8 | views.device_stats, |
| 9 | name='device'), |
| 10 | url(r'^api/v1/device_overview/(?P<uuid>[a-f0-9-]+)/$', |
| 11 | rest_endpoints.DeviceStat.as_view(), |
| 12 | name='hiccup_stats_api_v1_device_overview'), |
| 13 | url(r'^api/v1/device_update_history/(?P<uuid>[a-f0-9-]+)/$', |
| 14 | rest_endpoints.DeviceUpdateHistory.as_view(), |
| 15 | name='hiccup_stats_api_v1_device_update_history'), |
| 16 | url(r'^api/v1/device_report_history/(?P<uuid>[a-f0-9-]+)/$', |
| 17 | rest_endpoints.DeviceReportHistory.as_view(), |
| 18 | name='hiccup_stats_api_v1_device_report_history'), |
| 19 | url(r'^api/v1/logfile_download/(?P<id>[0-9]+)/$', |
| 20 | rest_endpoints.LogFileDownload.as_view(), |
| 21 | name='hiccup_stats_api_v1_logfile_download'), |
| 22 | ] |