aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/urls.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-02-19 17:59:26 +0000
committerGravatar Chris Lovering <[email protected]>2022-03-16 21:52:06 +0000
commit0aed5f7913e7ce268ddb56127f84a5386ede5739 (patch)
tree080039ca0d001c67e01a5cb5b33f3700a7479b5f /pydis_site/apps/api/urls.py
parentMove FilterList imports down so they're sorted (diff)
Add support for BumpedThreads to be stored in site
Following our move to use Redis as just a cache, this PR allows the site to store a list of threads that need to be bumped. The bot will interact with this within the ThreadBumper cog.
Diffstat (limited to 'pydis_site/apps/api/urls.py')
-rw-r--r--pydis_site/apps/api/urls.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pydis_site/apps/api/urls.py b/pydis_site/apps/api/urls.py
index 6b881fac..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,
@@ -33,6 +34,10 @@ bot_router.register(
BotSettingViewSet
)
bot_router.register(
+ 'bumped-threads',
+ BumpedThreadViewSet
+)
+bot_router.register(
'deleted-messages',
DeletedMessageViewSet
)