Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Express req decoration
// ...
app.use((req, res, next) => {
req.foo = 'hello world';
next();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment