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.

413 B
Raw Blame
import { withCron } from "@/lib/cron/with-cron";
import { welcomeUserJob } from "@/lib/jobs/handlers/welcome-user-job";
import { logAndRespond } from "../utils";

export const dynamic = "force-dynamic";

// POST /api/cron/welcome-user
export const POST = withCron(async ({ rawBody }) => {
  await welcomeUserJob.execute(JSON.parse(rawBody));
  return logAndRespond("Welcome email sent and user subscribed.");
});