Skip to content

Instantly share code, notes, and snippets.

@thebigredgeek
Created September 9, 2020 18:09
Show Gist options
  • Save thebigredgeek/b4a220264247ca5742453fc28aca6f47 to your computer and use it in GitHub Desktop.
Save thebigredgeek/b4a220264247ca5742453fc28aca6f47 to your computer and use it in GitHub Desktop.
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