7 lines
220 B
TypeScript
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 });
|
|
}
|