Parse x-www-form-urlencoded data

This commit is contained in:
Zalmoxisus 2016-08-17 18:37:52 +03:00
parent 0a8576ab86
commit 03ed564bce

View File

@ -20,6 +20,7 @@ module.exports.run = function(worker) {
app.use(cors({ methods: 'POST' }));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.post('/', function(req, res) {
if (!req.body) return res.status(404).end();
if (!store) store = createStore(worker.options);