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) {
|
2022-08-18 09:59:48 +00:00
|
|
|
config.sources[1].store = ctx.config
|
2022-04-05 16:47:24 +00:00
|
|
|
|
2022-04-19 17:42:07 +00:00
|
|
|
return import('./api/server.mjs')
|
2022-08-02 09:34:02 +00:00
|
|
|
.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
|
|
|
}
|