aboutsummaryrefslogtreecommitdiffstats
path: root/api/urls.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-01 17:54:29 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-01 17:54:29 +0200
commit245a890c797e244464b2fe6951c2d16402a99088 (patch)
treed83de62580e514d7165587b96dedf5ad9e85bb86 /api/urls.py
parentAdd the `OffTopicChannelName` model. (diff)
Add the GET route.
Diffstat (limited to 'api/urls.py')
-rw-r--r--api/urls.py7
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'