diff options
author | 2022-03-20 15:10:47 -0700 | |
---|---|---|
committer | 2022-03-20 15:10:47 -0700 | |
commit | 96122b7522bf2900c5f059dcdcc547d5e93dc1ad (patch) | |
tree | a70dfa87a8bca9279e98da272e7a95ba3ff287e6 /pydis_site/apps/api/urls.py | |
parent | Merge pull request #694 from camcaswell/role-update (diff) | |
parent | fixup: 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.py | 21 |
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', |