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.

Create route.ts

Kiran Kcd1c61894d6e
diff --git a/apps/web/app/(ee)/api/singular/webhook/route.ts b/apps/web/app/(ee)/api/singular/webhook/route.ts
new file mode 100644
index 0000000000..964f85096a
--- /dev/null
+++ b/apps/web/app/(ee)/api/singular/webhook/route.ts
@@ -0,0 +1,7 @@
+// GET /api/singular/webhook – listen to Postback events from Singular
+export const GET = async (req: Request) => {
+ // Find the click event
+ // Find the link info
+ // Find the Singular event (lead, sale)
+ // Track the valid events
+};