Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.forEach(({ channel, webhookPath, bot }) => {
const routePath = webhookPath || `/webhooks/${channel}`;
if (server) {
registerRoutes(server, bot, { path: routePath });
} else {
server = createServer(bot, {
path: routePath,
});
}
});
.forEach(({ channel, webhookPath, bot }) => {
const routePath = webhookPath || `/webhooks/${channel}`;
if (server) {
registerRoutes(server, bot, { path: routePath });
} else {
server = createServer(bot, {
path: routePath,
});
}
});