Function
handleUrlVerification
(req: Request, res: Response)
Source from the content-addressed store, hash-verified
| 90 | * Returns false if this is a normal event that should continue processing |
| 91 | */ |
| 92 | export function handleUrlVerification(req: Request, res: Response): boolean { |
| 93 | if (req.body?.type === 'url_verification') { |
| 94 | res.json({ challenge: req.body.challenge }); |
| 95 | return true; |
| 96 | } |
| 97 | return false; |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Combined middleware for Slack JSON endpoints (Events API) |
Tested by
no test coverage detected