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

9 lines
440 B
TypeScript

import type { ActionFunctionArgs } from "react-router";
import { z } from "zod";
import { proxyHandler } from "../lib/proxy.server";
import { releaseSelection } from "../services/storefront.server";
// POST /apps/datewise/release { token }
export const action = ({ request }: ActionFunctionArgs) =>
proxyHandler(request, 30, ({ shop, body }) => releaseSelection(shop, z.object({ token: z.string().min(8).max(80) }).parse(body).token));