api/init/index.js
Function init
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
function init(app) {
// When deployed we are behind a proxy, but we want to be
// able to access the requesting user's IP in req.ip, so
// 'trust proxy' must be enabled.
app.enable('trust proxy');