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

added lab search

This commit is contained in:
Fedor Katurov 2022-03-29 17:40:48 +07:00
parent 16d12f92da
commit ddf2b6eda3
16 changed files with 149 additions and 28 deletions

View file

@ -7,9 +7,9 @@ import {
} from '~/types/lab';
import { api, cleanResult } from '~/utils/api';
export const getLabNodes = ({ offset, limit, sort }: GetLabNodesRequest) =>
export const getLabNodes = ({ offset, limit, sort, search }: GetLabNodesRequest) =>
api
.get<GetLabNodesResult>(API.LAB.NODES, { params: { offset, limit, sort } })
.get<GetLabNodesResult>(API.LAB.NODES, { params: { offset, limit, sort, search } })
.then(cleanResult);
export const getLabStats = () => api.get<GetLabStatsResult>(API.LAB.STATS).then(cleanResult);