feat: 优化项目目录结构
This commit is contained in:
14
apps/frontend/lib/api/admin/web/blog/create.ts
Normal file
14
apps/frontend/lib/api/admin/web/blog/create.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user