12 lines
252 B
TypeScript
12 lines
252 B
TypeScript
import fetcher from "@/lib/api/fetcher";
|
|
|
|
type UpdateBlogParams = {
|
|
|
|
}
|
|
|
|
export async function update(id: string, data: UpdateBlogParams) {
|
|
return fetcher(`/admin/web/blog/${id}`, {
|
|
method: 'POST',
|
|
body: JSON.stringify(data)
|
|
})
|
|
} |