diff --git a/lib/api/notifications-api.js b/lib/api/notifications-api.js index d08a03a7ead..7d8ebafd8dd 100644 --- a/lib/api/notifications-api.js +++ b/lib/api/notifications-api.js @@ -1,12 +1,16 @@ 'use strict'; var consts = require('../constants'); +var bodyParser = require('body-parser'); function configure (app, wares, ctx) { var express = require('express') , api = express.Router( ) ; + app.use(bodyParser.urlencoded({extended : true})); + app.use(bodyParser.json()); + api.post('/notifications/pushovercallback', function (req, res) { if (ctx.pushnotify.pushoverAck(req.body)) { res.sendStatus(consts.HTTP_OK);