Skip to content

Instantly share code, notes, and snippets.

@bpinedah
Created March 17, 2020 06:04
Show Gist options
  • Save bpinedah/81b4b717a230922f41204e5825bd7fda to your computer and use it in GitHub Desktop.
Save bpinedah/81b4b717a230922f41204e5825bd7fda to your computer and use it in GitHub Desktop.
Routes article
app.post('/test', async (req, res, next) => {
req.body.auth = true;
return next(req);
}, async (req, res) => {
console.log("other func", req.body.auth); // true
return res.send(req.body.auth);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment