handling public actions

This commit is contained in:
Christophe LATOUR 2017-11-30 10:14:12 +01:00
parent 23ca6295d5
commit e60b211c12

View File

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