|
@@ -2,6 +2,7 @@ from django.urls import path, include
|
|
|
|
|
|
from tickets.api import views as apiviews
|
|
|
from tickets.views import *
|
|
|
+from tickets.api.v2.views.tickets import TicketPatchAPIView
|
|
|
|
|
|
app_name = "tickets"
|
|
|
|
|
@@ -15,7 +16,7 @@ api_v1_patterns = [
|
|
|
]
|
|
|
|
|
|
api_v2_patterns = [
|
|
|
-
|
|
|
+ path('ticket/<int:pk>', TicketPatchAPIView.as_view())
|
|
|
]
|
|
|
|
|
|
urlpatterns = [
|
|
@@ -33,6 +34,5 @@ urlpatterns = [
|
|
|
path("attachment/remove/<int:attachment_id>/", remove_attachment, name="remove_attachment"),
|
|
|
|
|
|
path("api/", include(api_v1_patterns)),
|
|
|
- # TODO: Рассмотреть возможность использования второго API, когда будет готово
|
|
|
- # path("api/v2/", include(api_v2_patterns)),
|
|
|
+ path("api/v2/", include(api_v2_patterns)),
|
|
|
]
|