📜  expressjs 发布端点 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:06.004000             🧑  作者: Mango

代码示例1
const express = require('express')
const app = express()

// POST method route
app.post('/', function (req, res) {
  // req.body
  res.send('POST request to the homepage')
})