nfp_sites/nfp_moe/index.mjs

12 lines
268 B
JavaScript
Raw Normal View History

2022-08-18 10:58:53 +00:00
import config from './base/config.mjs'
2022-04-05 14:43:23 +00:00
export function start(http, port, ctx) {
config.sources[1].store = ctx.config
2022-04-05 16:47:24 +00:00
return import('./api/server.mjs')
.then(function(module) {
let server = new module.default(http, port, ctx)
return server.run()
2022-04-05 16:47:24 +00:00
})
2022-04-05 14:43:23 +00:00
}