storage-upload/index.mjs

12 lines
267 B
JavaScript
Raw Permalink Normal View History

2022-08-13 21:52:45 +00:00
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()
})
}