build/index.js
async function _default(config, routesConfig) {
  const res = await (0, _startApp.default)(config);
  const {
    url,
    app,
    router,
    middleware,
    connect
  } = res;
  let methods;

  if (routesConfig) {
    methods = await (0, _routes.initRoutes2)(routesConfig, middleware, router);
    const routes = router.routes();
    app.use(routes);
  }

  return {
    url,
    app,
    connect,
    methods,
    router
  };
}
async function _default(config, routesConfig) {
  const res = await (0, _startApp.default)(config);
  const {
    url,
    app,
    router,
    middleware,
    connect
  } = res;
  let methods;

  if (routesConfig) {
    methods = await (0, _routes.initRoutes2)(routesConfig, middleware, router);
    const routes = router.routes();
    app.use(routes);
  }

  return {
    url,
    app,
    connect,
    methods,
    router
  };
}
async function _default ( config , routesConfig ) { const res = await ( 0 , _startApp . default ) ( config ) ; const { url , app , router , middleware , connect } = res ; let methods ; if ( routesConfig ) { methods = await ( 0 , _routes . initRoutes2 ) ( routesConfig , middleware , router ) ; const routes = router . routes ( ) ; app . use ( routes ) ; } return { url , app , connect , methods , router } ; }
eslint-disable-line eslint-disable-line 
Start the server.
@param {Config} config A configuration object.
@param {RoutesConfig} [routesConfig] A configuration object for the router.
eslint - disable - line eslint - disable - line Start the server .