Skip to content

Commit

Permalink
Fixed pushover callbacks not being processed (nightscout#7876)
Browse files Browse the repository at this point in the history
Co-authored-by: Sulka Haro <[email protected]>
  • Loading branch information
yodax and sulkaharo committed Feb 18, 2023
1 parent 2795892 commit d1fe8f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/api/notifications-api.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit d1fe8f5

Please sign in to comment.