|
@@ -83,7 +83,7 @@ module.exports = (crowi) => {
|
|
|
// eslint-disable-next-line max-len
|
|
// eslint-disable-next-line max-len
|
|
|
// see: https://api.slack.com/apis/connections/events-api#the-events-api__subscribing-to-event-types__events-api-request-urls__request-url-configuration--verification
|
|
// see: https://api.slack.com/apis/connections/events-api#the-events-api__subscribing-to-event-types__events-api-request-urls__request-url-configuration--verification
|
|
|
if (body.type === 'url_verification') {
|
|
if (body.type === 'url_verification') {
|
|
|
- return res.send({ message: body.message });
|
|
|
|
|
|
|
+ return res.send({ challenge: body.challenge });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return handleCommands(req, res);
|
|
return handleCommands(req, res);
|