Files
linumiq-invoice/app/routes/auth.$.tsx
T
2026-04-28 13:34:35 +02:00

15 lines
420 B
TypeScript

import type { HeadersFunction, LoaderFunctionArgs } from "react-router";
import { authenticate } from "../shopify.server";
import { boundary } from "@shopify/shopify-app-react-router/server";
export const loader = async ({ request }: LoaderFunctionArgs) => {
await authenticate.admin(request);
return null;
};
export const headers: HeadersFunction = (headersArgs) => {
return boundary.headers(headersArgs);
};