nfp_sites/discord_embed/index.mjs
Jonatan Nilsson 2b1e2d695a
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
base: Fix upload support for null
base: Tweak serve to be slightly more extendable
discord_embed: Added new site, discord embed
2022-10-17 07:52:55 +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()
})
}