实现resource界面
This commit is contained in:
@@ -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';
|
||||
1
tone-page-web/lib/api/resource/index.ts
Normal file
1
tone-page-web/lib/api/resource/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './list';
|
||||
6
tone-page-web/lib/api/resource/list.ts
Normal file
6
tone-page-web/lib/api/resource/list.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { Resource } from "@/lib/types/resource";
|
||||
import fetcher from "../fetcher";
|
||||
|
||||
export async function list() {
|
||||
return fetcher<Resource[]>('/api/resource');
|
||||
}
|
||||
Reference in New Issue
Block a user