docs: 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
    };
  }