实现添加博客

This commit is contained in:
2025-05-16 21:58:33 +08:00
parent dc0a8a1071
commit e782b926a4
13 changed files with 260 additions and 39 deletions

View File

@@ -1,5 +1,6 @@
import fetcher from "@/lib/api/fetcher";
import { Blog } from "@/lib/types/blog";
export async function list() {
return fetcher('/api/admin/web/blog')
return fetcher<Blog[]>('/api/admin/web/blog')
}