feat: 优化项目目录结构
This commit is contained in:
1
apps/frontend/lib/api/resource/index.ts
Normal file
1
apps/frontend/lib/api/resource/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './list';
|
||||
6
apps/frontend/lib/api/resource/list.ts
Normal file
6
apps/frontend/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