|
|
@@ -35,6 +35,7 @@ module.exports = (crowi) => {
|
|
|
router.post('/', /* verificationRequestUrl, /* verificationAccessToken, */ async(req, res) => {
|
|
|
|
|
|
verifyingIsSlackRequest(req, res, crowi.configManager.getConfig('crowi', 'slackbot:signingSecret'));
|
|
|
+
|
|
|
// Send response immediately to avoid opelation_timeout error
|
|
|
// See https://api.slack.com/apis/connections/events-api#the-events-api__responding-to-events
|
|
|
res.send();
|
|
|
@@ -95,7 +96,9 @@ module.exports = (crowi) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- router.post('/interactive', verificationRequestUrl, verifyingIsSlackRequest, async(req, res) => {
|
|
|
+ router.post('/interactive', verificationRequestUrl, async(req, res) => {
|
|
|
+
|
|
|
+ verifyingIsSlackRequest(req, res, crowi.configManager.getConfig('crowi', 'slackbot:signingSecret'));
|
|
|
|
|
|
// Send response immediately to avoid opelation_timeout error
|
|
|
// See https://api.slack.com/apis/connections/events-api#the-events-api__responding-to-events
|