This repository has been archived by the owner on Aug 6, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating documentation with detail on how to add and use custom Expre…
…ss middleware, currently undocumented
- Loading branch information
1 parent
04dca80
commit 678dc69
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Express | ||
This configuration file lets you easily add [Express](http://expressjs.com/) middleware, local variables and helpers for templates and directly access the application instance before it starts. | ||
|
||
```javascript | ||
module.exports.express = { | ||
|
||
customMiddleware: false | ||
|
||
/* | ||
// Say you want to use `connect-flash` for messaging within a session | ||
customMiddleware: function (app) { | ||
var flash = require('connect-flash'); | ||
app.use(flash()); | ||
} | ||
*/ | ||
|
||
}; | ||
``` |
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