feat: 优化项目目录结构
This commit is contained in:
6
apps/frontend/lib/api/blog/getComments.ts
Normal file
6
apps/frontend/lib/api/blog/getComments.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { BlogComment } from "@/lib/types/blogComment";
|
||||
import fetcher from "../fetcher";
|
||||
|
||||
export async function getComments(blogId: string) {
|
||||
return fetcher<BlogComment[]>(`/api/blog/${blogId}/comments`, { method: 'GET' });
|
||||
}
|
||||
Reference in New Issue
Block a user