from django.urls import path
from . import views
from .views import ShowAllListView, AddItemCreateView


urlpatterns = [
    path('', views.main_page, name='main-page'),
    # path('add_item/', views.add_item, name='add-item'),
    path('add_item/', AddItemCreateView.as_view(), name='add-item'),
    path('show_all/', ShowAllListView.as_view(), name='show-all'),
    path('show_items_from_category/', views.show_items_from_category, name='show-items-from-category'),
    path('delete_item/', views.delete_item, name='delete-item'),
    path('delete_item_confirm/', views.delete_item_confirm, name='delete-item-confirm'),
    path('delete_item_after_confirm/', views.delete_item_after_confirm, name='delete-item-after-confirm'),
    path('delete_all_items/', views.delete_all_items, name='delete-all-items'),
]