14 lines
427 B
Python
14 lines
427 B
Python
|
from django.urls import path
|
||
|
from . import views
|
||
|
|
||
|
app_name = 'cart'
|
||
|
|
||
|
urlpatterns = [
|
||
|
path('', views.cart, name='cart'),
|
||
|
path('add_cart/<int:product_id>/', views.add_cart, name='add_cart'),
|
||
|
path('remove_cart/<int:product_id>/<int:cart_item_id>/', views.remove_cart, name='remove_cart'),
|
||
|
path('remove_cart_item/<int:product_id>/<int:cart_item_id>/', views.remove_cart_item, name='remove_cart_item'),
|
||
|
|
||
|
|
||
|
]
|