1const express = require('express');
2const bodyParser = require('body-parser');
3
4const app = express();
5app.post('/', (req, res) => {
6 console.log('Got body:', req.body);
7 res.sendStatus(200);
8});
9
10app.listen(8080, () => console.log(`Started server at http://localhost:8080!`));
11