MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / handleUrlVerification

Function handleUrlVerification

server/src/middleware/slack.ts:92–98  ·  view source on GitHub ↗
(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 */
92export 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)

Callers 1

createSlackRouterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected