mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
429 B
16 lines
429 B
4 years ago
|
|
||
|
from rest_framework_bulk.routes import BulkRouter
|
||
|
from django.urls import path
|
||
|
|
||
|
from . 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
|