10 lines
264 B
TypeScript
10 lines
264 B
TypeScript
import fetcher from "../../fetcher";
|
|
|
|
export async function setPassword(userId: string, password: string) {
|
|
return fetcher(`/api/admin/user/${userId}/password`, {
|
|
method: 'POST',
|
|
body: JSON.stringify({
|
|
password,
|
|
}),
|
|
})
|
|
} |