spee.ch/client/api/fileApi.js

12 lines
331 B
JavaScript
Raw Normal View History

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