Created
November 22, 2016 08:37
-
-
Save eriadam/6f7fe0f2e0d56b5bf6e3e6299437a6f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core: (app) => { | |
// Security | |
console.log(':: Helmet'); | |
app.use(Helmet()); | |
// Compression | |
console.log(':: Compression'); | |
app.use(Compression()); | |
// Proper error messages | |
console.log(':: Boom'); | |
app.use(Boom()); | |
// json body parser | |
console.log(':: json body parser'); | |
app.use(BodyParser.json()); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment