Changes to repair API auth

This commit is contained in:
James Cole
2018-02-04 13:41:59 +01:00
parent 58bdf14f6b
commit 1ef28cbc02
2 changed files with 4 additions and 4 deletions

View File

@@ -65,8 +65,8 @@ class RouteServiceProvider extends ServiceProvider
*/
protected function mapApiRoutes()
{
Route::prefix('api')
->middleware('api')
Route::prefix('api/v1')
->middleware('auth:api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
}