UNPKG

@tapis/tapisui-api

Version:

Typescript library for making api calls with react query

8 lines (7 loc) 338 B
import { Authenticator } from '@tapis/tapis-typescript'; import { apiGenerator, errorDecoder } from '../utils'; const listProfiles = (params, basePath, jwt) => { const api = apiGenerator(Authenticator, Authenticator.ProfilesApi, basePath, jwt); return errorDecoder(() => api.listProfiles(params)); }; export default listProfiles;