mapApiRoutes(); $this->mapCApiRoutes(); $this->mapWxRoutes(); } /** * 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 mapCApiRoutes() { Route::prefix('cApi') ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/c_api.php')); } protected function mapWxRoutes() { Route::prefix('wx') ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/wx.php')); } }