mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Fixed pushover callbacks not being processed (#7876)
Co-authored-by: Sulka Haro <sulka@sulka.net>
This commit is contained in:
co-authored by
Sulka Haro
parent
27958924a2
commit
d1fe8f50da
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user