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.

format

Kiran K748121feeb3a
diff --git a/apps/web/lib/integration/slack/callback.ts b/apps/web/lib/integration/slack/callback.ts
index 24c7a07356..cb0ff5c3b5 100644
--- a/apps/web/lib/integration/slack/callback.ts
+++ b/apps/web/lib/integration/slack/callback.ts
@@ -1,38 +1 @@
-// import { withSession } from "@/lib/auth";
-// import { installIntegration } from "@/lib/integration/install";
-// import { prisma } from "@/lib/prisma";
-// import { redis } from "@/lib/upstash";
-// import z from "@/lib/zod";
-// import { APP_DOMAIN, getSearchParams } from "@dub/utils";
-// import { redirect } from "next/navigation";
-
-// const schema = z.object({
-// command: z.enum(["/shorten"]),
-// response_url: z.string().url(),
-// text: z.string().transform((text) => text.trim().split(" ").filter(Boolean)),
-// token: z.string(),
-// });
-
-// // POST /api/slack/callback – receive the message from the Slack
-// export const POST = async (req: NextRequest) => {
-// // TODO:
-// // Verify X-Slack-Signature
-
-// const formData = await req.formData();
-// const rawFormData = Object.fromEntries(formData.entries());
-// const parsedInput = schema.safeParse(rawFormData);
-
-// if (!parsedInput.success) {
-// return new Response("Invalid request", {
-// status: 400,
-// });
-// }
-
-// const { command, response_url, text, token } = parsedInput.data;
-
-// return new Response("OK");
-// };
-
-// export const handleSlackCallback = async (req: Request) => {
-// //
-// }
\ No newline at end of file
+export {};