The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
use new endpoints for create and delete
Kiran Kbce522d91520
diff --git a/apps/web/ui/analytics/share-popover.tsx b/apps/web/ui/analytics/share-popover.tsxindex bcbd35dbf5..ffecb944ec 100644--- a/apps/web/ui/analytics/share-popover.tsx+++ b/apps/web/ui/analytics/share-popover.tsx@@ -32,7 +32,7 @@ export default function SharePopover() {const handleCreate = async () => {setIsCreating(true);- const res = await fetch(`/api/analytics/share?${queryString}`, {+ const res = await fetch(`/api/analytics/dashboards?${queryString}`, {method: "POST",headers: {"Content-Type": "application/json",@@ -69,7 +69,7 @@ export default function SharePopover() {setRemoving(true);const res = await fetch(- `/api/analytics/share/${data.id}?workspaceId=${workspaceId}`,+ `/api/analytics/dashboards/${data.id}?workspaceId=${workspaceId}`,{method: "DELETE",},