spee.ch/client/src/api/fileApi.js

12 lines
334 B
JavaScript
Raw Normal View History

2018-05-23 04:06:37 +02:00
import Request from '../utils/request';
export function checkFileAvailability (claimId, host, name) {
const url = `${host}/api/file/availability/${name}/${claimId}`;
return Request(url);
}
export function triggerClaimGet (claimId, host, name) {
const url = `${host}/api/claim/get/${name}/${claimId}`;
return Request(url);
}