1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

getting flow diff

This commit is contained in:
Fedor Katurov 2019-11-18 15:15:41 +07:00
parent 971578bb21
commit 6641a03d92
4 changed files with 57 additions and 23 deletions

View file

@ -34,6 +34,25 @@ export const getNodes = ({
.then(resultMiddleware)
.catch(errorMiddleware);
export const getNodeDiff = ({
start = null,
end = null,
take,
access
}: {
start?: string;
end?: string;
take?: number;
access: string;
}): Promise<IResultWithStatus<{ nodes: INode[] }>> =>
api
.get(
API.NODE.GET_DIFF,
configWithToken(access, { params: { start, end, take } })
)
.then(resultMiddleware)
.catch(errorMiddleware);
export const getNode = ({
id,
access