2018-02-06 21:55:04 -08:00
|
|
|
import Request from 'utils/request';
|
2018-02-22 10:48:46 -08:00
|
|
|
const { site: { host } } = require('../../config/speechConfig.js');
|
2018-02-06 21:55:04 -08:00
|
|
|
|
|
|
|
export function checkFileAvailability (name, claimId) {
|
2018-02-22 10:48:46 -08:00
|
|
|
const url = `${host}/api/file/availability/${name}/${claimId}`;
|
2018-02-06 21:55:04 -08:00
|
|
|
return Request(url);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function triggerClaimGet (name, claimId) {
|
2018-02-22 10:48:46 -08:00
|
|
|
const url = `${host}/api/claim/get/${name}/${claimId}`;
|
2018-02-06 21:55:04 -08:00
|
|
|
return Request(url);
|
|
|
|
}
|