Files
tonePage/tone-page-web/lib/api/user/updatePassword.ts

10 lines
241 B
TypeScript

import fetcher from "../fetcher";
export async function updatePassword(password: string) {
return fetcher(`/api/user/password`, {
method: 'PUT',
body: JSON.stringify({
password: password,
}),
})
}