Files
tonePage/apps/frontend/lib/api/admin/web/blog/create.ts
2025-12-12 17:25:26 +08:00

14 lines
305 B
TypeScript

import fetcher from "@/lib/api/fetcher";
type CreateBlogParams = {
title: string;
description: string;
contentUrl: string;
}
export async function create(data: CreateBlogParams) {
return fetcher('/api/admin/web/blog', {
method: 'POST',
body: JSON.stringify(data)
})
}