nfp_sites/nfp_moe/index.mjs

12 lines
275 B
JavaScript
Raw Normal View History

import config from '../base/config.mjs'
2022-04-05 14:43:23 +00:00
export function start(http, port, ctx) {
2022-04-05 16:47:24 +00:00
config.stores.overrides.store = ctx.config
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
}