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