mirror of
https://github.com/docmost/docmost.git
synced 2025-11-12 12:22:38 +10:00
21 lines
488 B
TypeScript
21 lines
488 B
TypeScript
import api from "@/lib/api-client";
|
|
import { IPageHistory } from "@/features/page-history/types/page.types";
|
|
|
|
export async function getPageHistoryList(
|
|
pageId: string,
|
|
): Promise<IPageHistory[]> {
|
|
const req = await api.post("/pages/history", {
|
|
pageId,
|
|
});
|
|
return req.data;
|
|
}
|
|
|
|
export async function getPageHistoryById(
|
|
historyId: string,
|
|
): Promise<IPageHistory> {
|
|
const req = await api.post<IPageHistory>("/pages/history/info", {
|
|
historyId,
|
|
});
|
|
return req.data;
|
|
}
|