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.
19 lines
468 B
19 lines
468 B
# -*- coding: utf-8 -*-
|
|
#
|
|
from rest_framework_bulk.routes import BulkRouter
|
|
|
|
from .. import api
|
|
|
|
app_name = 'tickets'
|
|
router = BulkRouter()
|
|
|
|
router.register('tickets/request-asset-perm', api.RequestAssetPermTicketViewSet, 'ticket-request-asset-perm')
|
|
router.register('tickets', api.TicketViewSet, 'ticket')
|
|
router.register('tickets/(?P<ticket_id>[0-9a-zA-Z\-]{36})/comments', api.TicketCommentViewSet, 'ticket-comment')
|
|
|
|
|
|
urlpatterns = [
|
|
]
|
|
|
|
urlpatterns += router.urls
|