datewise/app/routes/proxy.waitlist.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

7 lines
395 B
TypeScript

import type { ActionFunctionArgs } from "react-router";
import { proxyHandler } from "../lib/proxy.server";
import { joinWaitlist } from "../services/storefront.server";
// POST /apps/datewise/waitlist { method, locationId, date, slot?, email?, phone?, name? }
export const action = ({ request }: ActionFunctionArgs) => proxyHandler(request, 10, ({ shop, body }) => joinWaitlist(shop, body));