From 245a890c797e244464b2fe6951c2d16402a99088 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Sat, 1 Sep 2018 17:54:29 +0200 Subject: Add the GET route. --- api/urls.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'api/urls.py') 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' -- cgit v1.2.3