Skip to content

Instantly share code, notes, and snippets.

Created Apr 1, 2021
What would you like to do?
// GET method route
app.get('/', function (req, res) {
res.send('GET request to the homepage')
// POST method route'/', 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