We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2795892 commit d1fe8f5Copy full SHA for d1fe8f5
lib/api/notifications-api.js
@@ -1,12 +1,16 @@
1
'use strict';
2
3
var consts = require('../constants');
4
+var bodyParser = require('body-parser');
5
6
function configure (app, wares, ctx) {
7
var express = require('express')
8
, api = express.Router( )
9
;
10
11
+ app.use(bodyParser.urlencoded({extended : true}));
12
+ app.use(bodyParser.json());
13
+
14
api.post('/notifications/pushovercallback', function (req, res) {
15
if (ctx.pushnotify.pushoverAck(req.body)) {
16
res.sendStatus(consts.HTTP_OK);
0 commit comments