2019-11-07 10:06:58 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
2021-12-29 12:07:56 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
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')
|
2021-08-25 11:02:50 +00:00
|
|
|
router.register('flows', api.TicketFlowViewSet, 'flows')
|
2020-12-29 16:19:59 +00:00
|
|
|
router.register('comments', api.CommentViewSet, 'comment')
|
2021-12-29 12:07:56 +00:00
|
|
|
router.register('ticket-session-relation', api.TicketSessionRelationViewSet, 'ticket-session-relation')
|
2019-11-07 10:06:58 +00:00
|
|
|
|
2021-12-29 12:07:56 +00:00
|
|
|
urlpatterns = [
|
|
|
|
path('tickets/<uuid:ticket_id>/session/', api.TicketSessionApi.as_view(), name='ticket-sesion'),
|
2022-02-28 12:22:14 +00:00
|
|
|
path('super-tickets/<uuid:pk>/status/', api.SuperTicketStatusAPI.as_view(), name='super-ticket-status'),
|
2021-12-29 12:07:56 +00:00
|
|
|
]
|
2019-11-07 10:06:58 +00:00
|
|
|
urlpatterns += router.urls
|