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.
24 lines
634 B
24 lines
634 B
# -*- coding: utf-8 -*-
|
|
#
|
|
from django.urls import path
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from .. import api
|
|
|
|
app_name = 'tickets'
|
|
router = DefaultRouter()
|
|
|
|
router.register('tickets', api.TicketViewSet, 'ticket')
|
|
router.register('login-confirm-tickets', api.LoginConfirmTicketViewSet, 'login-confirm-ticket')
|
|
router.register('tickets/<uuid:ticket_id>/comments/', api.CommentViewSet, 'ticket-comment')
|
|
|
|
|
|
urlpatterns = [
|
|
path('login-confirm-tickets/<uuid:pk>/actions/',
|
|
api.LoginConfirmTicketsCreateActionApi.as_view(),
|
|
name='login-confirm-ticket-create-action'
|
|
),
|
|
]
|
|
|
|
urlpatterns += router.urls
|