Created
October 4, 2018 03:01
-
-
Save ganeshkbhat/e0ebcbd689a5f48d226f72ad2d415e03 to your computer and use it in GitHub Desktop.
ExpressJS Series: Getting the req.method
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("/someUrl", function(req, res) { | |
| res.send(200).send({result: 'Your request method', method: req.method}); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment