feat: 前端资源、博客采用新的API实现

This commit is contained in:
2025-12-16 22:54:38 +08:00
parent 11f5360a52
commit 1cd663aa0c
3 changed files with 6 additions and 5 deletions

View File

@@ -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')
}