Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
middlewares: {
allowSystem,
checkPermissions,
restifyAuthorizationParser,
...middlewares.getAll() // shared between all plugins and core server
},
helpers: {
wrapAction,
populateRequesterParams,
getRequestContext: getRouteRequestContext
}
})
// must be the last middleware before error middleware
if (isApmActive) {
server.use(apm.middleware.connect())
}
return server
}