实现resource界面

This commit is contained in:
2025-05-12 21:50:53 +08:00
parent 875dbea8b9
commit 3402d263c1
5 changed files with 38 additions and 27 deletions

View File

@@ -0,0 +1 @@
export * from './list';

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