1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00
onion/js/fetchers/s3_fetcher.js
2016-07-08 16:19:35 +02:00

19 lines
391 B
JavaScript

import request from '../utils/request';
const S3Fetcher = {
deleteFile(key, bucket) {
return request('s3_delete_file', {
method: 'DELETE',
query: { bucket, key }
});
},
signUrl(key, title, artistName) {
return request('s3_sign_url', {
query: { artistName, key, title }
});
}
};
export default S3Fetcher;