aboutsummaryrefslogtreecommitdiffstats
path: root/api/urls.py
diff options
context:
space:
mode:
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'