From d25d7b5c672007349461f07a7d3ee1b3bbdba0b7 Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Sun, 5 Feb 2023 11:05:10 +0100 Subject: [PATCH] Fixed pushover callbacks not being processed --- lib/api/notifications-api.js | 4 ++++ 1 file changed, 4 insertions(+) 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);