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)
}
}
server.start(function (err) {
if (err) {
console.error('Failed to start server:', err);
}
server.log('info', 'Server initialized: ' + server.info);
restHapi.logUtil.logActionComplete(restHapi.logger, "Server Initialized", server.info);
});
});
server.start(() => {
RestHapi.logUtil.logActionComplete(RestHapi.logger, "Server Initialized", server.info);
});
});