mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
24 lines
485 B
JavaScript
24 lines
485 B
JavaScript
'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 }
|
|
});
|
|
},
|
|
|
|
signUrl(key, title, artistName) {
|
|
return request('sign_url_s3', {
|
|
query: { artistName, key, title }
|
|
});
|
|
}
|
|
};
|
|
|
|
export default S3Fetcher;
|