Skip to content

Commit 553c0eb

Browse files
committed
Reorganize API routes for category attributes and catalogue
This commit moves the '/categories/attributes' route to a new position in the API routes file, ensuring better organization and readability. The route remains unchanged, continuing to link to the ListCategoryController's method for retrieving categories with their attributes.
1 parent 7019130 commit 553c0eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routes/api.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
*/
112112

113113

114-
Route::get('/categories/attributes',[ListCategoryController::class,"getCategoriesWithAttributes"]);
114+
115115
Route::get("catalogue/{shop_key}",[CatalogueController::class,'index']);
116116

117117
Route::get('/filter/products/{arrayId}',[CategoryFilterController::class,'filter']);
@@ -179,6 +179,8 @@
179179
Route::post('update/images',[UpdateSellerController::class,'updateGalerieImages']);
180180
Route::post("/boost/shop",[BoostShopController::class,'boost']);
181181

182+
Route::get('/categories/attributes',[ListCategoryController::class,"getCategoriesWithAttributes"]);
183+
182184
// Routes pour la gestion des commandes du vendeur
183185
Route::get('/seller/orders', [OrderListController::class, 'listOrders']);
184186
Route::get('/seller/orders/shop/{shopId}', [OrderListController::class, 'listOrdersByShop']);

0 commit comments

Comments
 (0)