add recent changes tab to home

This commit is contained in:
Philipinho
2023-11-13 12:36:56 +00:00
parent f5cd140a7d
commit dc65fbafa4
17 changed files with 240 additions and 36 deletions
@@ -11,6 +11,11 @@ export async function getPageById(id: string): Promise<IPage> {
return req.data as IPage;
}
export async function getRecentChanges(): Promise<IPage[]> {
const req = await api.post<IPage[]>('/pages/recent');
return req.data as IPage[];
}
export async function getPages(): Promise<IPage[]> {
const req = await api.post<IPage[]>('/pages');
return req.data as IPage[];