jumpserver/apps/tickets/urls/api_urls.py

18 lines
358 B
Python
Raw Normal View History

2019-11-07 10:06:58 +00:00
# -*- coding: utf-8 -*-
#
2019-11-08 12:17:25 +00:00
from rest_framework_bulk.routes import BulkRouter
2019-11-07 10:06:58 +00:00
from .. import api
app_name = 'tickets'
2019-11-08 12:17:25 +00:00
router = BulkRouter()
2019-11-07 10:06:58 +00:00
router.register('tickets', api.TicketViewSet, 'ticket')
2019-11-08 07:48:01 +00:00
router.register('tickets/(?P<ticket_id>[0-9a-zA-Z\-]{36})/comments', api.TicketCommentViewSet, 'ticket-comment')
2019-11-07 10:06:58 +00:00
urlpatterns = [
]
urlpatterns += router.urls