From e60b211c125de0893a52c340f7e6a92825849410 Mon Sep 17 00:00:00 2001 From: Christophe LATOUR Date: Thu, 30 Nov 2017 10:14:12 +0100 Subject: [PATCH] handling public actions --- routes/web.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/web.php b/routes/web.php index 0444a01..63ffb3d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -31,7 +31,9 @@ $app->post('/recover', 'AuthController@recover'); */ $app->get('/sales', 'SaleController@lists'); $app->get('/tags', 'TagController@lists'); - +$app->get('/product/{id_product}', 'ProductController@get'); +$app->get('/category/{id_category}', 'CategoryController@get'); +$app->get('/category/{id_category}/products', 'CategoryController@list_products'); /* |-------------------------------------------------------------------------- @@ -56,15 +58,13 @@ $app->group(['middleware' => 'auth'], function() use ($app) { | CATEGORY ROUTES |-------------------------------------------------------------------------- */ - $app->get('/category/{id_category}', 'CategoryController@get'); - $app->get('/category/{id_category}/products', 'CategoryController@list_products'); /* |-------------------------------------------------------------------------- | PRODUCT ROUTES |-------------------------------------------------------------------------- */ - $app->get('/product/{id_product}', 'ProductController@get'); + /* |--------------------------------------------------------------------------