WangDL 9988077057 feat: 添加微信小程序项目完整代码
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-14 22:05:46 +08: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);
};