aboutsummaryrefslogtreecommitdiffstats
path: root/api/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/urls.py')
-rw-r--r--api/urls.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/api/urls.py b/api/urls.py
index 59853934..af275381 100644
--- a/api/urls.py
+++ b/api/urls.py
@@ -3,7 +3,7 @@ from rest_framework.routers import DefaultRouter
from .views import HealthcheckView
from .viewsets import (
- DocumentationLinkViewSet,
+ DocumentationLinkViewSet, InfractionViewSet,
OffTopicChannelNameViewSet,
SnakeFactViewSet, SnakeIdiomViewSet,
SnakeNameViewSet, SpecialSnakeViewSet,
@@ -18,15 +18,15 @@ bot_router.register(
DocumentationLinkViewSet
)
bot_router.register(
+ 'infractions',
+ InfractionViewSet
+)
+bot_router.register(
'off-topic-channel-names',
OffTopicChannelNameViewSet,
base_name='offtopicchannelname'
)
bot_router.register(
- 'users',
- UserViewSet
-)
-bot_router.register(
'snake-facts',
SnakeFactViewSet
)
@@ -47,6 +47,10 @@ bot_router.register(
'tags',
TagViewSet
)
+bot_router.register(
+ 'users',
+ UserViewSet
+)
app_name = 'api'
urlpatterns = (