|
|
@@ -17,6 +17,10 @@ const validator = {
|
|
|
body('isIncomingWebhookPrioritized').isBoolean(),
|
|
|
body('slackToken').isString(),
|
|
|
],
|
|
|
+ userNotification: [
|
|
|
+ body('pathPattern').isString,
|
|
|
+ body('channel').isString,
|
|
|
+ ],
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
@@ -97,7 +101,7 @@ module.exports = (crowi) => {
|
|
|
|
|
|
});
|
|
|
|
|
|
- // TODO swagger & validator
|
|
|
+ // TODO swagger
|
|
|
router.post('/user-notification', loginRequiredStrictly, adminRequired, csrf, validator.userNotification, ApiV3FormValidator, async(req, res) => {
|
|
|
return res.apiv3({ });
|
|
|
});
|