完成资源CRUD

This commit is contained in:
2025-05-12 21:31:24 +08:00
parent bb054f7f5a
commit e3ca7ac027
8 changed files with 233 additions and 52 deletions

View File

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