2018-02-07 06:55:04 +01:00
|
|
|
import Request from 'utils/request';
|
2018-03-10 03:23:19 +01:00
|
|
|
const { details: { host } } = require('../../config/siteConfig.js');
|
2018-02-07 06:55:04 +01:00
|
|
|
|
|
|
|
export function checkFileAvailability (name, claimId) {
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function triggerClaimGet (name, claimId) {
|
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);
|
|
|
|
}
|