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.

unauthenticated demo route

Pedro Ladeirade8ef4d28f55
diff --git a/apps/web/app/api/deepsec-demo/route.ts b/apps/web/app/api/deepsec-demo/route.ts
new file mode 100644
index 0000000000..339cbf59e0
--- /dev/null
+++ b/apps/web/app/api/deepsec-demo/route.ts
@@ -0,0 +1,13 @@
+import { NextResponse } from "next/server";
+
+export const GET = async (req: Request) => {
+ const workspaceId = new URL(req.url).searchParams.get("workspaceId");
+ const q = new URL(req.url).searchParams.get("q") ?? "";
+
+ return new NextResponse(`<p>${q}</p>`, {
+ headers: {
+ "content-type": "text/html",
+ "x-workspace-id": workspaceId ?? "",
+ },
+ });
+};