Answers for "expressjs post endpoint"

0

expressjs post endpoint

const express = require('express')
const app = express()

// POST method route
app.post('/', function (req, res) {
  // req.body
  res.send('POST request to the homepage')
})
Posted by: Guest on October-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language