change divvy endpoint route
This commit is contained in:
@@ -115,7 +115,7 @@ const onEvent = async function (event, user) {
|
||||
|
||||
axios({
|
||||
method: 'post',
|
||||
url: 'https://qmicloud-dev.qliktech.com/api/v1/divvy/updates',
|
||||
url: 'https://qmicloud-dev.qliktech.com/api/v1/divvy/events',
|
||||
headers: { 'QMI-ApiKey': "027a77d4235da3d4613f930e8f8a405e0941a37d82e88234a0717633c2ffe2470bba9880705206df02df6368defa0e73274d6aabfbe14eaee7a921854a4e83b5" },
|
||||
data: event
|
||||
}).catch(function (err2) {
|
||||
|
||||
@@ -6,9 +6,9 @@ const passport = require('../passport-okta');
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* /divvy/updates:
|
||||
* /divvy/events:
|
||||
* post:
|
||||
* description: DivvyCloud updates webhook
|
||||
* description: DivvyCloud webhook
|
||||
* tags:
|
||||
* - admin
|
||||
* requestBody:
|
||||
@@ -23,7 +23,7 @@ const passport = require('../passport-okta');
|
||||
* 200:
|
||||
* description: Notifications
|
||||
*/
|
||||
router.post('/updates', passport.ensureAuthenticatedAndAdmin, async (req, res) => {
|
||||
router.post('/events', passport.ensureAuthenticatedAndAdmin, async (req, res) => {
|
||||
|
||||
divvy.onEvent(req.body, req.user);
|
||||
return res.json(req.body);
|
||||
|
||||
Reference in New Issue
Block a user