Framework\Providers\RouteServiceProvider::mapApiRoutes PHP Method

mapApiRoutes() protected method

These routes are typically stateless.
protected mapApiRoutes ( ) : void
return void
    protected function mapApiRoutes()
    {
        Route::group(['middleware' => 'api', 'namespace' => $this->namespace, 'prefix' => 'api'], function ($router) {
            require base_path('routes/api.php');
        });
    }