@tapis/tapisui-api
Version:
Typescript library for making api calls with react query
8 lines (7 loc) • 316 B
JavaScript
import { Systems } from '@tapis/tapis-typescript';
import { apiGenerator, errorDecoder } from '../utils';
const shareSystem = (params, basePath, jwt) => {
const api = apiGenerator(Systems, Systems.SharingApi, basePath, jwt);
return errorDecoder(() => api.shareSystem(params));
};
export default shareSystem;