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