2018-02-07 06:55:04 +01:00
|
|
|
import Request from 'utils/request';
|
2018-02-22 19:48:46 +01:00
|
|
|
const { site: { host } } = require('../../config/speechConfig.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);
|
|
|
|
}
|