configureRateLimiting(); $this->routes(function () { Route::domain('apis.' . env('APP_URL')) ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/apis.php')); Route::domain('api.' . env('APP_URL')) ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/clientapis.php')); Route::domain('assetgame.' . env('APP_URL')) ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/assetgame.php')); Route::domain('clientsettings.api.' . env('APP_URL')) ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/appsettings.php')); Route::domain('versioncompatibility.api.' . env('APP_URL')) ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/versioncompatibility.php')); Route::domain('impulse.' . env('APP_URL')) ->middleware('web') ->namespace($this->namespace) ->group(base_path('routes/admin.php')); Route::domain('www.' . env('APP_URL')) ->middleware('web') ->namespace($this->namespace) ->group(base_path('routes/web.php')); Route::domain(env('APP_URL')) ->middleware('web') ->namespace($this->namespace) ->group(base_path('routes/web.php')); }); } // /** // * Configure the rate limiters for the application. // * // * @return void // */ // protected function configureRateLimiting() // { // RateLimiter::for('api', function (Request $request) { // return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip()); // }); // } }