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'); + /* |--------------------------------------------------------------------------