Skip to content

Instantly share code, notes, and snippets.

@elpuas
Created Apr 1, 2021
Embed
What would you like to do?
// 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