Files
tonePage/apps/frontend/lib/api/blog/getComments.ts
2025-12-12 17:25:26 +08:00

6 lines
229 B
TypeScript

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