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, |
Dirk Vogt | 57a615d | 2017-05-04 22:29:54 +0200 | [diff] [blame] | 9 | name='hiccup_stats_device'), |
| 10 | url(r'^$', |
| 11 | views.home, |
Dirk Vogt | 62ff7f2 | 2017-05-04 16:07:21 +0200 | [diff] [blame] | 12 | name='device'), |
Dirk Vogt | 1accb67 | 2017-05-10 14:07:42 +0200 | [diff] [blame] | 13 | url(r'^versions/$', |
| 14 | views.versions_overview, |
| 15 | name='hiccup_stats_versions'), |
| 16 | url(r'^versions/all/$', |
| 17 | views.versions_all_overview, |
| 18 | name='hiccup_stats_versions_all'), |
Dirk Vogt | 62ff7f2 | 2017-05-04 16:07:21 +0200 | [diff] [blame] | 19 | url(r'^api/v1/device_overview/(?P<uuid>[a-f0-9-]+)/$', |
| 20 | rest_endpoints.DeviceStat.as_view(), |
| 21 | name='hiccup_stats_api_v1_device_overview'), |
Dirk Vogt | 571168c | 2017-12-08 16:54:12 +0100 | [diff] [blame] | 22 | url(r'^api/v1/status/$', |
| 23 | rest_endpoints.Status.as_view(), |
| 24 | name='hiccup_stats_api_v1_status'), |
Dirk Vogt | 62ff7f2 | 2017-05-04 16:07:21 +0200 | [diff] [blame] | 25 | url(r'^api/v1/device_update_history/(?P<uuid>[a-f0-9-]+)/$', |
| 26 | rest_endpoints.DeviceUpdateHistory.as_view(), |
| 27 | name='hiccup_stats_api_v1_device_update_history'), |
| 28 | url(r'^api/v1/device_report_history/(?P<uuid>[a-f0-9-]+)/$', |
| 29 | rest_endpoints.DeviceReportHistory.as_view(), |
| 30 | name='hiccup_stats_api_v1_device_report_history'), |
Dirk Vogt | 1accb67 | 2017-05-10 14:07:42 +0200 | [diff] [blame] | 31 | |
Dirk Vogt | 62ff7f2 | 2017-05-04 16:07:21 +0200 | [diff] [blame] | 32 | url(r'^api/v1/logfile_download/(?P<id>[0-9]+)/$', |
| 33 | rest_endpoints.LogFileDownload.as_view(), |
| 34 | name='hiccup_stats_api_v1_logfile_download'), |
Borjan Tchakaloff | 1db45c7 | 2018-02-23 17:03:49 +0400 | [diff] [blame] | 35 | |
Dirk Vogt | 1accb67 | 2017-05-10 14:07:42 +0200 | [diff] [blame] | 36 | url(r'^api/v1/versions/$', |
| 37 | rest_endpoints.VersionListView.as_view(), |
| 38 | name='hiccup_stats_api_v1_versions'), |
Dirk Vogt | 1accb67 | 2017-05-10 14:07:42 +0200 | [diff] [blame] | 39 | url(r'^api/v1/version_daily/$', |
| 40 | rest_endpoints.VersionDailyListView.as_view(), |
| 41 | name='hiccup_stats_api_v1_version_daily'), |
Borjan Tchakaloff | 1db45c7 | 2018-02-23 17:03:49 +0400 | [diff] [blame] | 42 | |
| 43 | url(r'^api/v1/radio_versions/$', |
| 44 | rest_endpoints.RadioVersionListView.as_view(), |
| 45 | name='hiccup_stats_api_v1_radio_versions'), |
| 46 | url(r'^api/v1/radio_version_daily/$', |
| 47 | rest_endpoints.RadioVersionDailyListView.as_view(), |
| 48 | name='hiccup_stats_api_v1_radio_version_daily'), |
Dirk Vogt | 62ff7f2 | 2017-05-04 16:07:21 +0200 | [diff] [blame] | 49 | ] |