mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-07-11 09:25:03 +00:00
* feat: 调整站内信接口 * 添加 websockt * 添加信息类型字段 * 添加 has_read 过滤参数 * feat: 调整站内信接口 * 添加 websockt * 添加信息类型字段 * 添加 has_read 过滤参数 * 去掉type websocket * perf: 去掉type Co-authored-by: xinwen <coderWen@126.com> Co-authored-by: ibuler <ibuler@qq.com>
16 lines
441 B
Python
16 lines
441 B
Python
|
|
from rest_framework_bulk.routes import BulkRouter
|
|
from django.urls import path
|
|
|
|
from notifications import api
|
|
|
|
app_name = 'notifications'
|
|
|
|
router = BulkRouter()
|
|
router.register('system-msg-subscription', api.SystemMsgSubscriptionViewSet, 'system-msg-subscription')
|
|
router.register('site-message', api.SiteMessageViewSet, 'site-message')
|
|
|
|
urlpatterns = [
|
|
path('backends/', api.BackendListView.as_view(), name='backends')
|
|
] + router.urls
|