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

added updated nodes to flow

This commit is contained in:
Fedor Katurov 2019-10-30 17:26:30 +07:00
parent 6f76bec2c0
commit 74cd181530
13 changed files with 128 additions and 30 deletions

View file

@ -19,11 +19,13 @@ export const postNode = ({
export const getNodes = ({
skip = 0,
access,
}: {
skip?: number;
access: string;
}): Promise<IResultWithStatus<{ nodes: INode[] }>> =>
api
.get(API.NODE.GET, { params: { skip } })
.get(API.NODE.GET, configWithToken(access, { params: { skip } }))
.then(resultMiddleware)
.catch(errorMiddleware);