from django.urls import path, include from tickets.views import * # from .apiviews import * # from rest_framework import routers # router = routers.DefaultRouter() # router.register(r'tickets', ticketMVS) # router.register(r'list', ticketListMVS) # router.register(r'type', TicketTypeMVS) # router.register(r'comment', CommentMVS) # router.register(r'attachments', AttachmentMVS) app_name = "tickets" urlpatterns = [ path("", TicketListView.as_view(), name="ticket_list_list"), path("search/", search, name="search"), path("ticket_list_create/", TicketListCreateView.as_view(), name="ticket_list_create"), path("my_tickets/", ticket_list_detail, {"my_tickets": True}, name="my_tickets"), path("assignments/", ticket_list_detail, {"assignments": True}, name="assignments"), path("/", ticket_list_detail, name="ticket_list_detail"), path("/ticket_create/", TicketCreateView.as_view(), name="ticket_create"), path("/delete", TicketListDeleteView.as_view(), name="ticket_list_delete"), path("ticket//", TicketDetailView.as_view(), name="ticket_detail"), path("ticket//edit", TicketEditView.as_view(), name="ticket_edit"), path("ticket//delete", TicketDeleteView.as_view(), name="ticket_delete"), path("attachment/remove//", remove_attachment, name="remove_attachment"), # path("api/", include(router.urls)) ]