Skip to content

Commit d1fe8f5

Browse files
yodaxsulkaharo
andauthored
Fixed pushover callbacks not being processed (nightscout#7876)
Co-authored-by: Sulka Haro <[email protected]>
1 parent 2795892 commit d1fe8f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/api/notifications-api.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
'use strict';
22

33
var consts = require('../constants');
4+
var bodyParser = require('body-parser');
45

56
function configure (app, wares, ctx) {
67
var express = require('express')
78
, api = express.Router( )
89
;
910

11+
app.use(bodyParser.urlencoded({extended : true}));
12+
app.use(bodyParser.json());
13+
1014
api.post('/notifications/pushovercallback', function (req, res) {
1115
if (ctx.pushnotify.pushoverAck(req.body)) {
1216
res.sendStatus(consts.HTTP_OK);

0 commit comments

Comments
 (0)