feat: 重构前端api封装结构
This commit is contained in:
5
apps/frontend/lib/api/endpoints/blog.server.ts
Normal file
5
apps/frontend/lib/api/endpoints/blog.server.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { serverFetch } from "../server";
|
||||
|
||||
export async function list() {
|
||||
return serverFetch('/api/blog')
|
||||
}
|
||||
Reference in New Issue
Block a user