Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.use(bodyParser.json())
this.use(bodyParser.urlencoded({extended: true}))
this.use(helmet())
this.use(locale({
priority: ["cookie", "query", "hostname", "map", "accept-language", "default"],
default: "en_US"
}))
this.use(cookieParser())
this.configure(hooks())
// this.configure(rest())
this.configure(socketio(socketHandler))
if (IS_PROD) {
// Feathers Sync Module
this.configure(sync({
db: REDIS_URL || "redis://localhost:6379"
}))
}
this.use(basicLogger)
this.use(serverRender)
this.use(errorHandler)
}