1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 21:52:08 +02:00
onion/js/fetchers/s3_fetcher.js

24 lines
485 B
JavaScript
Raw Normal View History

'use strict';
import request from '../utils/request';
let S3Fetcher = {
/**
* Fetch the registered applications of a user from the API.
*/
deleteFile(key, bucket) {
return request('delete_s3_file', {
method: 'DELETE',
query: { bucket, key }
});
2016-02-17 11:38:01 +01:00
},
2016-02-17 11:38:01 +01:00
signUrl(key, title, artistName) {
return request('sign_url_s3', {
query: { artistName, key, title }
2016-02-17 11:38:01 +01:00
});
}
};
export default S3Fetcher;