完成BlogApi

This commit is contained in:
2025-05-18 14:29:42 +08:00
parent 4f5f771e2b
commit 39f3e6b93c
5 changed files with 22 additions and 0 deletions

View File

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