Files
crmApi/apps/ticket/urls.py
T
2024-01-22 13:01:42 +03:30

10 lines
396 B
Python

from django.urls import path
from apps.ticket.views import *
urlpatterns = [
path('create/', TicketCreateApi.as_view(), name='create_ticket'),
path('<int:ticket_id>/', TicketCommentsListApi.as_view(), name='comments_ticket'),
path('<int:ticket_id>/new/', TicketCommentCreateApi.as_view(), name='add_comment_ticket'),
path('list/', TicketListApi.as_view(), name='list_ticket'),
]