2026-05-20 02:35:48 +00:00

12 lines
551 B
Python

from django.urls import path
from . import views
urlpatterns = [
path('', views.product_list, name='product_list'),
path('category/<slug:category>/', views.product_list, name='product_category'),
path('wishlist/', views.wishlist_view, name='wishlist'),
path('wishlist/toggle/<int:product_id>/', views.toggle_wishlist, name='toggle_wishlist'),
path('wishlist/move-to-cart/<int:product_id>/', views.move_wishlist_to_cart, name='move_wishlist_to_cart'),
path('<int:product_id>/', views.product_detail, name='product_detail'),
]