nfp_sites/nfp_moe/index.mjs
Jonatan Nilsson e097a773cb
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
nfp_moe: Fix bug in index
2022-08-18 10:58:53 +00:00

11 lines
268 B
JavaScript

import config from './base/config.mjs'
export function start(http, port, ctx) {
config.sources[1].store = ctx.config
return import('./api/server.mjs')
.then(function(module) {
let server = new module.default(http, port, ctx)
return server.run()
})
}