1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-05-01 07:36:40 +07:00

added lab node layout (sample)

This commit is contained in:
Fedor Katurov 2021-03-12 13:56:23 +07:00
parent 18ec220a4e
commit 3aa2d4f609
18 changed files with 218 additions and 38 deletions
src/redux/lab

8
src/redux/lab/api.ts Normal file
View file

@ -0,0 +1,8 @@
import { api, cleanResult } from '~/utils/api';
import { API } from '~/constants/api';
import { GetLabNodesRequest, GetLabNodesResult } from '~/redux/lab/types';
export const getLabNodes = ({ after }: GetLabNodesRequest) =>
api
.get<GetLabNodesResult>(API.LAB.NODES, { params: { after } })
.then(cleanResult);