diff options
author | 2018-09-01 17:54:29 +0200 | |
---|---|---|
committer | 2018-09-01 17:54:29 +0200 | |
commit | 245a890c797e244464b2fe6951c2d16402a99088 (patch) | |
tree | d83de62580e514d7165587b96dedf5ad9e85bb86 /api/urls.py | |
parent | Add the `OffTopicChannelName` model. (diff) |
Add the GET route.
Diffstat (limited to 'api/urls.py')
-rw-r--r-- | api/urls.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/api/urls.py b/api/urls.py index 78a310f6..121e941c 100644 --- a/api/urls.py +++ b/api/urls.py @@ -2,13 +2,14 @@ from django.urls import include, path from rest_framework.routers import SimpleRouter from .views import HealthcheckView -from .viewsets import DocumentationLinkViewSet, SnakeNameViewSet +from .viewsets import DocumentationLinkViewSet, OffTopicChannelNameViewSet, SnakeNameViewSet # http://www.django-rest-framework.org/api-guide/routers/#simplerouter bot_router = SimpleRouter(trailing_slash=False) -bot_router.register(r'documentation-links', DocumentationLinkViewSet) -bot_router.register(r'snake-names', SnakeNameViewSet, base_name='snakename') +bot_router.register('documentation-links', DocumentationLinkViewSet) +bot_router.register('off-topic-channel-names', OffTopicChannelNameViewSet, base_name='offtopicchannelname') +bot_router.register('snake-names', SnakeNameViewSet, base_name='snakename') app_name = 'api' |