aboutsummaryrefslogtreecommitdiffstats
path: root/api/urls.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-10-17 19:50:23 +0000
committerGravatar Johannes Christ <[email protected]>2018-10-17 19:50:23 +0000
commit7b0e0ce545238bfa21f710f983b595950a636b52 (patch)
tree66f92f9d6328e2ad4484bf412cebe3057af7056a /api/urls.py
parentAdd `docker` tag to use proper runners. (diff)
parentMerge branch 'django' of https://gitlab.com/python-discord/projects/site into... (diff)
Merge branch 'snake_facts' into 'django'
Snake Facts API See merge request python-discord/projects/site!41
Diffstat (limited to 'api/urls.py')
-rw-r--r--api/urls.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/api/urls.py b/api/urls.py
index 1648471c..40883c64 100644
--- a/api/urls.py
+++ b/api/urls.py
@@ -4,7 +4,7 @@ from rest_framework.routers import DefaultRouter
from .views import HealthcheckView
from .viewsets import (
DocumentationLinkViewSet, MemberViewSet,
- OffTopicChannelNameViewSet, SnakeNameViewSet,
+ OffTopicChannelNameViewSet, SnakeFactViewSet, SnakeNameViewSet,
TagViewSet
)
@@ -25,6 +25,10 @@ bot_router.register(
MemberViewSet
)
bot_router.register(
+ 'snake-facts',
+ SnakeFactViewSet,
+)
+bot_router.register(
'snake-names',
SnakeNameViewSet,
base_name='snakename'