handling public actions
This commit is contained in:
parent
23ca6295d5
commit
e60b211c12
@ -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');
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user