Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix public stats settings endpoint

Kiran K43306e88f074
diff --git a/apps/web/ui/analytics/share-popover.tsx b/apps/web/ui/analytics/share-popover.tsx
index 0491314814..b521521f77 100644
--- a/apps/web/ui/analytics/share-popover.tsx
+++ b/apps/web/ui/analytics/share-popover.tsx
@@ -33,7 +33,7 @@ export default function SharePopover() {
});
const handleUpdate = async (checked: boolean) => {
- const res = await fetch(`${baseApiPath}?${queryString}`, {
+ const res = await fetch(`/api/analytics?${queryString}`, {
method: "PUT",
headers: {
"Content-Type": "application/json",