diff options
author | 2018-12-08 11:55:40 +0000 | |
---|---|---|
committer | 2018-12-08 11:55:40 +0000 | |
commit | 65b3381cfd35949ef457d5f794f83dbd3a4bd45c (patch) | |
tree | 1867912cf613498a4ca56fe3a0ef8660876157e3 /api/urls.py | |
parent | Renamed class in test_users (diff) | |
parent | Bump minimum DRF version to `3.9.0`. (diff) |
Fixed merge conflicts
Diffstat (limited to 'api/urls.py')
-rw-r--r-- | api/urls.py | 14 |
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 = ( |