Created
April 1, 2021 21:16
-
-
Save elpuas/aadf883b6624a07f96846002c96fb483 to your computer and use it in GitHub Desktop.
This file contains 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
// GET method route | |
app.get('/', function (req, res) { | |
res.send('GET request to the homepage') | |
}) | |
// POST method route | |
app.post('/', function (req, res) { | |
res.send('POST request to the homepage') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment