loading
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const express = require('express');
const bodyParser = require('body-parser');

const app = express();

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));

app.post('/data', (req, res) => {
  console.log('RECEIVED WEBHOOK EVENT:')
  console.log('----------------')
	console.log(req.body);
  console.log('\nSUBMISSION FILES')
  console.log('----------------')
  console.log(req.body.submission.files)
  res.status(200).send()
});

app.listen(3000, () => console.log('server started'));