Mitja Nikolaus | d199506 | 2018-07-30 14:10:27 +0200 | [diff] [blame] | 1 | """Define all Hiccup REST API URLs.""" |
| 2 | |
Dirk Vogt | f130c75 | 2016-08-23 14:45:01 +0200 | [diff] [blame] | 3 | from django.conf.urls import include, url |
| 4 | from django.contrib import admin |
Mitja Nikolaus | d199506 | 2018-07-30 14:10:27 +0200 | [diff] [blame] | 5 | from drf_yasg import openapi |
| 6 | |
| 7 | api_info = openapi.Info( |
| 8 | title="Hiccup API", |
| 9 | default_version='v1', |
| 10 | ) |
Dirk Vogt | f130c75 | 2016-08-23 14:45:01 +0200 | [diff] [blame] | 11 | |
| 12 | urlpatterns = [ |
Dirk Vogt | 965ac76 | 2016-08-26 10:05:03 +0200 | [diff] [blame] | 13 | url(r'^hiccup/admin/', admin.site.urls), |
Dirk Vogt | 20539e5 | 2016-08-26 11:17:35 +0200 | [diff] [blame] | 14 | url(r'^hiccup/', include('crashreports.urls')), |
Dirk Vogt | 62ff7f2 | 2017-05-04 16:07:21 +0200 | [diff] [blame] | 15 | url(r'^hiccup_stats/', include('crashreport_stats.urls')), |
Dirk Vogt | 57a615d | 2017-05-04 22:29:54 +0200 | [diff] [blame] | 16 | url(r'^accounts/', include('allauth.urls')), |
Dirk Vogt | f130c75 | 2016-08-23 14:45:01 +0200 | [diff] [blame] | 17 | ] |