完成博客增删改查

This commit is contained in:
2025-05-16 22:10:21 +08:00
parent e782b926a4
commit 4f5f771e2b
5 changed files with 163 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
import fetcher from "@/lib/api/fetcher";
import { Blog } from "@/lib/types/blog";
export async function get(id: string) {
return fetcher<Blog>(`/api/admin/web/blog/${id}`)
}