Files
remark42/frontend/app/common/api.getLastComments.ts
T

7 lines
228 B
TypeScript

import { Comment } from './types';
import { apiFetcher } from './fetcher';
export default function getLastComments(siteId: string, max: number): Promise<Comment[]> {
return apiFetcher.get(`/last/${max}`, { site: siteId });
}