aboutsummaryrefslogtreecommitdiffstats
path: root/api/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/urls.py')
-rw-r--r--api/urls.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/api/urls.py b/api/urls.py
index b0e104cd..78a310f6 100644
--- a/api/urls.py
+++ b/api/urls.py
@@ -2,13 +2,15 @@ from django.urls import include, path
from rest_framework.routers import SimpleRouter
from .views import HealthcheckView
-from .viewsets import SnakeNameViewSet
+from .viewsets import DocumentationLinkViewSet, 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')
+
app_name = 'api'
urlpatterns = (
# Build URLs using something like...