protected function mapApiRoutes() { Route::group(['middleware' => 'api', 'namespace' => $this->namespace, 'prefix' => 'api'], function ($router) { require base_path('routes/api.php'); }); }