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