Skip to content

Commit

Permalink
Adding extra middleware on page apis
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 16, 2017
1 parent eea48e3 commit db1a13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Page/Http/apiRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
return app(\Modules\Page\Repositories\PageRepository::class)->find($id);
});

$router->group(['prefix' => '/page'], function (Router $router) {
$router->group(['prefix' => '/page', 'middleware' => ['api.token', 'auth.admin']], function (Router $router) {
$router->get('pages', [
'as' => 'api.page.page.index',
'uses' => 'PageController@index',
Expand Down

0 comments on commit db1a13e

Please sign in to comment.