Created
March 17, 2020 06:04
-
-
Save bpinedah/81b4b717a230922f41204e5825bd7fda to your computer and use it in GitHub Desktop.
Routes article
This file contains hidden or 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
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