@servable/server
Version:
Servable server
27 lines (21 loc) • 402 B
JavaScript
import perform from './perform/index.js'
export default async (props) => {
const {
configuration,
app,
schema,
engine
} = props
let result
const bootConfig = { ...configuration.config }
delete bootConfig.parse.schema
await engine.doLaunch({
config: bootConfig,
app
})
Servable.schema = schema
result = await perform(props)
return {
...result,
}
}