Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const startServer = async function() {
try {
const manifest = Manifest.get('/')
const server = await Glue.compose(manifest, composeOptions)
await server.start()
RestHapi.logUtil.logActionComplete(
RestHapi.logger,
'Server Initialized',
server.info
)
} catch (err) {
console.error(err)
process.exit(1)
}
}