12 lines
298 B
TypeScript
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
|
|
});
|
|
}
|