nfp_sites/saproxy/index.mjs
Jonatan Nilsson 840f23908e
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
saproxy: Created basic proxy service
2023-05-11 12:26:41 +00:00

11 lines
267 B
JavaScript

import config from './api/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()
})
}