feat: cart detail
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
from django.urls import path
|
||||
|
||||
from web.views.components import cart_dropdown, list_products
|
||||
from web.views.components import cart, cart_dropdown, list_products
|
||||
from web.views.users import login, logout, register, reset_password
|
||||
from web.views.web import (
|
||||
add_cart_item,
|
||||
@@ -12,7 +12,6 @@ from web.views.web import (
|
||||
|
||||
app_name = "web"
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path("", index, name="index"),
|
||||
path("products/<int:pk>/<str:slug>/", product_detail, name="product_detail"),
|
||||
@@ -25,6 +24,7 @@ urlpatterns = [
|
||||
# components
|
||||
path("web/components/products/", list_products, name="list_products"),
|
||||
path("web/components/cart-dropdown/", cart_dropdown, name="cart_dropdown"),
|
||||
path("web/components/cart/", cart, name="cart"),
|
||||
# api
|
||||
path("web/add-cart-item/", add_cart_item, name="add_cart_item"),
|
||||
path("web/delete-cart-item/<int:pk>/", delete_cart_item, name="delete_cart_item"),
|
||||
|
||||
Reference in New Issue
Block a user