Files
shopify-template/app/api/account/recover/route.ts
T
2026-08-08 14:21:24 -04:00

11 lines
306 B
TypeScript

import { recoverPassword } from '@/services/shopify/customer';
export async function POST(req: Request) {
const { email } = await req.json();
if (email) await recoverPassword(email);
// Always the same response, so the form can't reveal who has an account.
return Response.json({ ok: true });
}