datewise/app/routes/proxy.offer.tsx
metatroncubeswdev e56182e0e3 chore: initial Datewise app (rebranded from SlotSure prototype)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 20:06:49 -04:00

8 lines
419 B
TypeScript

import type { LoaderFunctionArgs } from "react-router";
import { proxyHandler } from "../lib/proxy.server";
import { adoptOffer } from "../services/storefront.server";
// GET /apps/datewise/offer?token=wl_… (link sent to the first person on a waitlist)
export const loader = ({ request }: LoaderFunctionArgs) =>
proxyHandler(request, 20, ({ shop, url }) => adoptOffer(shop, url.searchParams.get("token") ?? ""));