Dirk Vogt | d134521 | 2016-09-14 14:31:45 +0200 | [diff] [blame^] | 1 | from django.conf.urls import url, include |
Dirk Vogt | f130c75 | 2016-08-23 14:45:01 +0200 | [diff] [blame] | 2 | from . import views |
Dirk Vogt | d134521 | 2016-09-14 14:31:45 +0200 | [diff] [blame^] | 3 | from rest_framework import routers |
| 4 | from rest_framework import filters |
| 5 | |
| 6 | router = routers.DefaultRouter() |
| 7 | router.register(r'crashreports', views.CrashreportViewSet) |
Dirk Vogt | f130c75 | 2016-08-23 14:45:01 +0200 | [diff] [blame] | 8 | |
| 9 | urlpatterns = [ |
| 10 | url(r'^crashreport/', views.index, name='index'), |
Dirk Vogt | d134521 | 2016-09-14 14:31:45 +0200 | [diff] [blame^] | 11 | url(r'^crashreports/hiccup_stats/', views.hiccup_stats, name='home'), |
| 12 | url(r'^', include(router.urls)), |
| 13 | ] |