📅  最后修改于: 2022-03-11 15:03:12.553000             🧑  作者: Mango
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
app.post('/', (req, res) => {
console.log('Got body:', req.body);
res.sendStatus(200);
});
app.listen(8080, () => console.log(`Started server at http://localhost:8080!`));