Fixed pushover callbacks not being processed (#7876)

Co-authored-by: Sulka Haro <sulka@sulka.net>
This commit is contained in:
Michael Kroes
2023-02-18 09:00:04 +02:00
committed by GitHub
co-authored by Sulka Haro
parent 27958924a2
commit d1fe8f50da
+4
View File
@@ -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);