完成博客、资源管理api
This commit is contained in:
12
tone-page-web/lib/api/admin/web/blog/create.ts
Normal file
12
tone-page-web/lib/api/admin/web/blog/create.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import fetcher from "@/lib/api/fetcher";
|
||||
|
||||
type CreateBlogParams = {
|
||||
|
||||
}
|
||||
|
||||
export async function create(data: CreateBlogParams) {
|
||||
return fetcher('/admin/web/blog', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(data)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user