UNPKG

@tapis/tapisui-api

Version:

Typescript library for making api calls with react query

8 lines (7 loc) 318 B
import { Workflows } from '@tapis/tapis-typescript'; import { apiGenerator, errorDecoder } from '../../utils'; const create = (params, basePath, jwt) => { const api = apiGenerator(Workflows, Workflows.ArchivesApi, basePath, jwt); return errorDecoder(() => api.createArchive(params)); }; export default create;