* use one api method insted full api file * remove debug for preact * use smaller constans file * move unique constants
7 lines
215 B
TypeScript
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}`);
|
|
}
|