from django.urls import path, include
from .views import HomeView, ItemDetailView, add_to_cart, remove_from_cart,OrderSummaryView,remove_single_item_from_cart,CheckoutView

app_name = "core"

urlpatterns = [
    path('', HomeView.as_view(), name='item_list'),
    path('check-out/', CheckoutView.as_view(), name='checkout'),
    path('order-summary/', OrderSummaryView.as_view(), name='order-summary'),
    path('product/<slug>', ItemDetailView.as_view(), name='product'),
    path('add-to-cart/<slug>', add_to_cart, name='add-to-cart'),
    path('remove-from-cart/<slug>', remove_from_cart, name='remove-from-cart'),
    path('remove_single_item_from_cart/<slug>', remove_single_item_from_cart, name='remove_single_item_from_cart'),
]
