Skip to content

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 45b9662 commit 050b23e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/routes.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$router->group(
['middleware' => 'auth:web,api', 'namespace' => 'Api', 'prefix' => 'api/v1'],
['middleware' => ['api', 'auth:web,api'], 'namespace' => 'Api', 'prefix' => 'api/v1'],
function ($router) {
$router->post('projects/demo', 'DemoProjectController@store');
}
Expand Down

0 comments on commit 050b23e

Please sign in to comment.