@tapis/tapisui-api
Version:
Typescript library for making api calls with react query
8 lines (7 loc) • 338 B
JavaScript
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;