diff options
author | 2018-09-23 15:15:55 +0200 | |
---|---|---|
committer | 2018-09-23 15:15:55 +0200 | |
commit | d285c580e9bfb8afe2225d7b8c2db822071f2d15 (patch) | |
tree | 42fa33c0a6b22794d20a2424785803c02c4e391b /api | |
parent | Add viewsets and URLs for the Tag API. (diff) |
Add API root view documentation.
Diffstat (limited to 'api')
-rw-r--r-- | api/urls.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/urls.py b/api/urls.py index e69f1c73..1648471c 100644 --- a/api/urls.py +++ b/api/urls.py @@ -1,5 +1,5 @@ from django.urls import include, path -from rest_framework.routers import SimpleRouter +from rest_framework.routers import DefaultRouter from .views import HealthcheckView from .viewsets import ( @@ -9,8 +9,8 @@ from .viewsets import ( ) -# http://www.django-rest-framework.org/api-guide/routers/#simplerouter -bot_router = SimpleRouter(trailing_slash=False) +# http://www.django-rest-framework.org/api-guide/routers/#defaultrouter +bot_router = DefaultRouter(trailing_slash=False) bot_router.register( 'documentation-links', DocumentationLinkViewSet |