Tweak default files.

This commit is contained in:
Taylor Otwell
2016-07-24 22:17:23 -05:00
parent eedac025eb
commit 8f66f4b6e9
2 changed files with 7 additions and 6 deletions

View File

@@ -68,7 +68,9 @@ class RouteServiceProvider extends ServiceProvider
protected function mapApiRoutes()
{
Route::group([
'namespace' => $this->namespace, 'middleware' => 'api',
'middleware' => ['api', 'auth:api'],
'namespace' => $this->namespace,
'prefix' => 'api',
], function ($router) {
require base_path('routes/api.php');
});