import type { ActionFunctionArgs } from "@remix-run/node"; import { authenticate } from "../shopify.server"; // TODO (Phase 4): mark the linked Booking cancelled and free its // capacity/resources. See IMPLEMENTATION_PLAN.md ยง5.2. export const action = async ({ request }: ActionFunctionArgs) => { const { shop, topic, payload } = await authenticate.webhook(request); console.log(`Received ${topic} webhook for ${shop}`, payload); return new Response(); };