MCPcopy Create free account
hub / github.com/ShipSecAI/studio / handleCopyUrl

Function handleCopyUrl

frontend/src/pages/WebhooksPage.tsx:161–176  ·  view source on GitHub ↗
(webhook: WebhookConfiguration)

Source from the content-addressed store, hash-verified

159 };
160
161 const handleCopyUrl = async (webhook: WebhookConfiguration) => {
162 const url = `${WEBHOOK_BASE_URL}/webhooks/inbound/${webhook.webhookPath}`;
163 try {
164 await navigator.clipboard.writeText(url);
165 toast({
166 title: 'Webhook URL copied',
167 description: 'The webhook URL has been copied to your clipboard.',
168 });
169 } catch (_err) {
170 toast({
171 title: 'Failed to copy',
172 description: 'Could not copy the webhook URL to clipboard.',
173 variant: 'destructive',
174 });
175 }
176 };
177
178 const handleRefresh = async () => {
179 try {

Callers 1

WebhooksPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected