aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/urls.py
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2022-03-20 15:10:47 -0700
committerGravatar GitHub <[email protected]>2022-03-20 15:10:47 -0700
commit96122b7522bf2900c5f059dcdcc547d5e93dc1ad (patch)
treea70dfa87a8bca9279e98da272e7a95ba3ff287e6 /pydis_site/apps/api/urls.py
parentMerge pull request #694 from camcaswell/role-update (diff)
parentfixup: don't use "We" in docstring (diff)
Merge #663 - bumped threads endpoint
Diffstat (limited to 'pydis_site/apps/api/urls.py')
-rw-r--r--pydis_site/apps/api/urls.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/pydis_site/apps/api/urls.py b/pydis_site/apps/api/urls.py
index 7c55fc92..1e564b29 100644
--- a/pydis_site/apps/api/urls.py
+++ b/pydis_site/apps/api/urls.py
@@ -6,6 +6,7 @@ from .viewsets import (
AocAccountLinkViewSet,
AocCompletionistBlockViewSet,
BotSettingViewSet,
+ BumpedThreadViewSet,
DeletedMessageViewSet,
DocumentationLinkViewSet,
FilterListViewSet,
@@ -21,14 +22,22 @@ from .viewsets import (
# https://www.django-rest-framework.org/api-guide/routers/#defaultrouter
bot_router = DefaultRouter(trailing_slash=False)
bot_router.register(
- 'filter-lists',
- FilterListViewSet
+ "aoc-account-links",
+ AocAccountLinkViewSet
+)
+bot_router.register(
+ "aoc-completionist-blocks",
+ AocCompletionistBlockViewSet
)
bot_router.register(
'bot-settings',
BotSettingViewSet
)
bot_router.register(
+ 'bumped-threads',
+ BumpedThreadViewSet
+)
+bot_router.register(
'deleted-messages',
DeletedMessageViewSet
)
@@ -37,12 +46,8 @@ bot_router.register(
DocumentationLinkViewSet
)
bot_router.register(
- "aoc-account-links",
- AocAccountLinkViewSet
-)
-bot_router.register(
- "aoc-completionist-blocks",
- AocCompletionistBlockViewSet
+ 'filter-lists',
+ FilterListViewSet
)
bot_router.register(
'infractions',