Files
remark42/frontend/app/common/api.getLastComments.ts
T
2021-05-06 15:55:46 -05:00

7 lines
220 B
TypeScript

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