From 74fc7c147b9074f33a95b6c27f0b5162bf80990c Mon Sep 17 00:00:00 2001 From: Parsa Nazer <129178874+Greenstorm911@users.noreply.github.com> Date: Wed, 21 May 2025 18:09:03 +0330 Subject: [PATCH] Update urls.py --- backend/product/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/product/urls.py b/backend/product/urls.py index 8351af9..d0708cb 100644 --- a/backend/product/urls.py +++ b/backend/product/urls.py @@ -2,10 +2,10 @@ from django.urls import path from .views import AllCategories, ProductView, AllProductsView, CommentView, ShowCaseProductsView, ShowCaseCategoryListView urlpatterns = [ + path('', ProductView.as_view(), name='product-detail'), path('', AllProductsView.as_view(), name='category-products'), path('slider_category', ShowCaseProductsView.as_view(), name='category-products'), path('categories', AllCategories.as_view(), name='all-categories'), path('slider_categories', ShowCaseCategoryListView.as_view(), name='all-categories'), - path('', ProductView.as_view(), name='product-detail'), path('comments/', CommentView.as_view(), name='comment-views'), ] \ No newline at end of file