6 lines
229 B
TypeScript
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' });
|
|
} |