Files
role-user/src/app/api/auth/me/password/route.ts
T
2026-06-02 14:46:39 +08:00

12 lines
298 B
TypeScript

import { proxyBackendJson } from "@/lib/backend";
import type { AuthUser } from "@/lib/types";
export async function PATCH(request: Request) {
const body = await request.text();
return proxyBackendJson<AuthUser>("/auth/me/password", {
method: "PATCH",
body: body || undefined
});
}