实现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

@@ -1,3 +1,4 @@
export * as authApi from './auth/index';
export * as verificationApi from './verification/index';
export * as AdminApi from './admin/index';
export * as AdminApi from './admin/index';
export * as ResourceApi from './resource/index';

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