diff options
author | 2019-10-22 18:05:09 +0200 | |
---|---|---|
committer | 2019-10-24 19:58:13 +0200 | |
commit | 731a3ca4cefd7ed9bc6619b0d98cb0c28f14f290 (patch) | |
tree | cf412016dcc6f43b1fe0cc6bb45035b8d907fa25 /pydis_site/apps/api/urls.py | |
parent | blank commit to trigger deployment (diff) |
Create an OffensiveMessage model
This model will be used to store message that triggered a filter and that will be deleted one week after it was sent.
Diffstat (limited to 'pydis_site/apps/api/urls.py')
-rw-r--r-- | pydis_site/apps/api/urls.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pydis_site/apps/api/urls.py b/pydis_site/apps/api/urls.py index ac6704c8..b1864ba7 100644 --- a/pydis_site/apps/api/urls.py +++ b/pydis_site/apps/api/urls.py @@ -6,7 +6,8 @@ from .viewsets import ( BotSettingViewSet, DeletedMessageViewSet, DocumentationLinkViewSet, InfractionViewSet, LogEntryViewSet, NominationViewSet, - OffTopicChannelNameViewSet, ReminderViewSet, + OffTopicChannelNameViewSet, + OffensiveMessageViewSet, ReminderViewSet, RoleViewSet, TagViewSet, UserViewSet ) @@ -34,6 +35,10 @@ bot_router.register( NominationViewSet ) bot_router.register( + 'offensive-message', + OffensiveMessageViewSet +) +bot_router.register( 'off-topic-channel-names', OffTopicChannelNameViewSet, base_name='offtopicchannelname' |