django_magazine/cart/urls.py

14 lines
427 B
Python
Raw Normal View History

2023-01-31 11:20:57 +00:00
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'),
]