Skip to content

Instantly share code, notes, and snippets.

@derzunov
Created October 14, 2016 19:09
Show Gist options
  • Save derzunov/660e71b7233b91213e6c212835fcb7d4 to your computer and use it in GitHub Desktop.
Save derzunov/660e71b7233b91213e6c212835fcb7d4 to your computer and use it in GitHub Desktop.
your_cool_project/config/http.js
module.exports.http = {
middleware: {
passportInit : require('passport').initialize(),
passportSession : require('passport').session(),
order: [
'startRequestTimer',
'cookieParser',
'session',
'passportInit',
'passportSession',
'myRequestLogger',
/* ... */
/* остальные ваши мидлвары, если они есть... */
/* ... */
],
/* ... */
/* остальные ваши параметры, если они есть... */
/* ... */
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment