From cabd3517acd4be84eaac827632043ddccfc4c2de Mon Sep 17 00:00:00 2001 From: AmirHossein Shirazi Date: Fri, 13 Dec 2024 11:20:31 +0330 Subject: [PATCH] urls based on frontend desires --- backend/product/urls.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/product/urls.py b/backend/product/urls.py index 8d77f11..cb733e3 100644 --- a/backend/product/urls.py +++ b/backend/product/urls.py @@ -2,9 +2,9 @@ from django.urls import path from .views import AllCategories, ProductView, AllProductsView, CommentView urlpatterns = [ - path('categories/', AllCategories.as_view(), name='all-categories'), - path('products//', ProductView.as_view(), name='product-detail'), - path('categories//products/', AllProductsView.as_view(), name='category-products'), - path('products//comments/', CommentView.as_view(), name='product-comments'), - path('comments//', CommentView.as_view(), name='comment-delete'), + path('categories', AllCategories.as_view(), name='all-categories'), + path('products/', ProductView.as_view(), name='product-detail'), + path('categories/products', AllProductsView.as_view(), name='category-products'), + path('products//comments', CommentView.as_view(), name='product-comments'), + path('comments/', CommentView.as_view(), name='comment-delete'), ] \ No newline at end of file