实现resource界面

This commit is contained in:
2025-05-12 21:50:53 +08:00
parent 30224774e6
commit 53665f8847
5 changed files with 38 additions and 27 deletions

View File

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