mapApiRoutes(); $this->mapWebRoutes(); $this->mapAdminRoutes(); $this->mapPwaRoutes(); $this->mapConsumerAPIRoutes(); $this->mapAnalyticsAPIRoutes(); $this->mapServiceAPIRoutes(); $this->mapVendorAPIRoutes(); $this->mapCreditFairAIRoutes(); $this->mapTestRunnerRoutes(); $this->mapForeclosureValidationRoutes(); // } /** * Define the "web" routes for the application. * * These routes all receive session state, CSRF protection, etc. * * @return void */ protected function mapWebRoutes() { Route::middleware('web') ->namespace($this->namespace) ->group(base_path('routes/web.php')); } /** * Define the "admin" routes for the application. * * These routes all receive session state, CSRF protection, etc. * * @return void */ protected function mapAdminRoutes() { Route::prefix('admin') ->middleware('web') ->namespace($this->namespace) ->group(base_path('routes/admin.php')); } /** * Define the "api" routes for the application. * * These routes are typically stateless. * * @return void */ protected function mapApiRoutes() { Route::prefix('api') ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/api.php')); } protected function mapPwaRoutes() { Route::prefix('pwa') ->namespace($this->namespace) ->group(base_path('routes/pwa.php')); } protected function mapConsumerAPIRoutes() { Route::prefix('consumer') ->namespace($this->namespace) ->group(base_path('routes/consumer.php')); } protected function mapAnalyticsAPIRoutes() { Route::prefix('analytics') ->namespace($this->namespace) ->group(base_path('routes/analytics.php')); } protected function mapVendorAPIRoutes() { Route::prefix('vendor') ->middleware('vendor.auth') ->namespace($this->namespace) ->group(base_path('routes/vendor_apis.php')); } protected function mapServiceAPIRoutes(){ Route::prefix(_env('SERVICE_API')) ->middleware('api.service') ->namespace($this->namespace) ->group(base_path('routes/service.php')); } protected function mapCreditFairAIRoutes() { Route::prefix('creditfair-ai') //->middleware('vendor.auth') ->namespace($this->namespace) ->group(base_path('routes/credit_fair_ai_apis.php')); } protected function mapTestRunnerRoutes() { Route::middleware(['api', 'test.runner.auth']) ->namespace($this->namespace) ->group(base_path('routes/test_runner.php')); } protected function mapForeclosureValidationRoutes() { Route::prefix('admin') ->middleware('web') ->namespace($this->namespace) ->group(base_path('routes/foreclosure_validation.php')); } }