mapApiRoutes(); $this->mapAdminApiRoutes(); $this->mapWebRoutes(); $this->mapOfficialApiRoutes(); $this->mapAppApiRoutes(); $this->mapServerAdminApiRoutes(); $this->mapServerH5ApiRoutes(); $this->mapServerMAdminApiRoutes(); $this->mapServerMAppApiRoutes(); $this->mapEnterpriseAdminRoutes(); $this->mapEnterpriseH5Routes(); // } /** * 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 "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')); } /** * Define the "api" routes for the application. * * These routes are typically stateless. * * @return void */ protected function mapAdminApiRoutes() { Route::prefix('api/admin') ->middleware('api') ->namespace($this->admin_namespace) ->group(base_path('routes/admin/api.php')); } /** * Define the "api" routes for the application. * * These routes are typically stateless. * * @return void */ protected function mapOfficialApiRoutes() { Route::prefix('api/official') ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/official/api.php')); } /** * Define the "api" routes for the application. * * These routes are typically stateless. * * @return void */ public function mapAppApiRoutes() { Route::prefix('api/app') ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/app/api.php')); } public function mapServerH5ApiRoutes() { Route::prefix('api/s/h5') ->middleware("api") ->namespace($this->server_h5_namespace) ->group(base_path('routes/server/h5/api.php')); } public function mapServerMAppApiRoutes() { Route::prefix('api/s/app') ->middleware("api") ->namespace($this->server_App_namespace) ->group(base_path('routes/server/app/api.php')); } public function mapServerAdminApiRoutes() { Route::prefix('api/s/admin') ->middleware('api') ->namespace($this->server_admin_namespace) ->group(base_path('routes/server/admin/api.php')); } public function mapServerMAdminApiRoutes() { Route::prefix('api/s/m/admin') ->middleware('api') ->namespace($this->server_admin_namespace) ->group(base_path('routes/server/m_admin/api.php')); } public function mapEnterpriseAdminRoutes() { Route::prefix('api/s/enterprise/admin') ->middleware('api') ->namespace($this->enterprise_alliance_admin_space) ->group(base_path('routes/server/enterprise/admin/api.php')); } public function mapEnterpriseH5Routes() { Route::prefix('api/s/enterprise/h5') ->middleware('api') ->namespace($this->enterprise_alliance_h5_space) ->group(base_path('routes/server/enterprise/h5/api.php')); } }