Update RouteServiceProvider

This commit is contained in:
Daniel Supernault 2018-11-08 23:09:04 -07:00
parent 1a6219e7af
commit aa903a3902
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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