spee.ch/react/api/fileApi.js

13 lines
387 B
JavaScript
Raw Normal View History

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