Jonatan Nilsson
2b1e2d695a
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
base: Tweak serve to be slightly more extendable discord_embed: Added new site, discord embed
11 lines
268 B
JavaScript
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()
|
|
})
|
|
}
|