feat: 前端资源、博客采用新的API实现
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Blog } from "@/lib/types/blog";
|
||||
import { serverFetch } from "../server";
|
||||
|
||||
export async function list() {
|
||||
return serverFetch('/api/blog')
|
||||
return serverFetch<Blog[]>('/api/blog')
|
||||
}
|
||||
Reference in New Issue
Block a user