Files
tonePage/tone-page-web/lib/api/admin/web/blog/setPassword.ts
2025-06-23 00:07:23 +08:00

10 lines
272 B
TypeScript

import fetcher from "@/lib/api/fetcher";
export async function setPassword(id: string, password: string) {
return fetcher<boolean>(`/api/admin/web/blog/${id}/password`, {
method: 'POST',
body: JSON.stringify({
password,
})
})
}