Skip to content

Commit

Permalink
Merge pull request #399 from thekanbo/auth
Browse files Browse the repository at this point in the history
Explicitly require authentication on API routes by default
  • Loading branch information
kaidesu authored Jul 10, 2019
2 parents e33e4b7 + f959e54 commit ed3a124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/stubs/module/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function mapWebRoutes()
protected function mapApiRoutes()
{
Route::group([
'middleware' => 'api',
'middleware' => 'auth:api',
'namespace' => $this->namespace,
'prefix' => 'api',
], function ($router) {
Expand Down

0 comments on commit ed3a124

Please sign in to comment.