Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Use api middleware for API routes
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Mar 9, 2022
1 parent 17bd538 commit 5698bc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$router->group([
'namespace' => 'Api',
'prefix' => 'api/v1',
'middleware' => ['auth:web,api', 'can:sudo'],
'middleware' => ['api', 'auth:web,api', 'can:sudo'],
], function ($router) {
$router->get('export/users', 'Export\UserExportController@show');
$router->get('export/label-trees', 'Export\LabelTreeExportController@show');
Expand All @@ -17,7 +17,7 @@
$router->group([
'namespace' => 'Api',
'prefix' => 'api/v1',
'middleware' => ['auth:web,api'],
'middleware' => ['api', 'auth:web,api'],
], function ($router) {
$router->get('public-export/label-trees/{id}', [
'as' => 'get-public-label-tree-export',
Expand Down

0 comments on commit 5698bc9

Please sign in to comment.