Files
remark42/frontend/app/common/api.getLastComments.ts
T
Pavel MineevandUmputun 30f3ffe517 Reduce size of last-comments widget
* use one api method insted full api file
* remove debug for preact
* use smaller constans file
* move unique constants
2020-03-07 03:59:03 -06:00

7 lines
215 B
TypeScript

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