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:
parent
6f76bec2c0
commit
74cd181530
13 changed files with 128 additions and 30 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue