aboutsummaryrefslogtreecommitdiffstats
path: root/api/urls.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-23 15:09:28 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-23 15:09:28 +0200
commit152b2ae6afc12cba9f03bc9b136bbf6780deda0e (patch)
treeaeb36d331a8de0ec6b2ac12b484be87d003cc5c0 /api/urls.py
parentExclude `admin.py` modules. (diff)
Add viewsets and URLs for the Tag API.
Diffstat (limited to 'api/urls.py')
-rw-r--r--api/urls.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/api/urls.py b/api/urls.py
index f4ed641c..e69f1c73 100644
--- a/api/urls.py
+++ b/api/urls.py
@@ -4,7 +4,8 @@ from rest_framework.routers import SimpleRouter
from .views import HealthcheckView
from .viewsets import (
DocumentationLinkViewSet, MemberViewSet,
- OffTopicChannelNameViewSet, SnakeNameViewSet
+ OffTopicChannelNameViewSet, SnakeNameViewSet,
+ TagViewSet
)
@@ -28,7 +29,10 @@ bot_router.register(
SnakeNameViewSet,
base_name='snakename'
)
-
+bot_router.register(
+ 'tags',
+ TagViewSet,
+)
app_name = 'api'
urlpatterns = (