mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
25 lines
498 B
JavaScript
25 lines
498 B
JavaScript
'use strict';
|
|
|
|
import requests from '../utils/requests';
|
|
|
|
let S3Fetcher = {
|
|
/**
|
|
* Fetch the registered applications of a user from the API.
|
|
*/
|
|
deleteFile(key, bucket) {
|
|
return requests.delete('delete_s3_file', {
|
|
key,
|
|
bucket
|
|
});
|
|
},
|
|
signUrl(key, title, artistName) {
|
|
return requests.get('sign_url_s3', {
|
|
key,
|
|
title,
|
|
'artist_name': artistName
|
|
});
|
|
}
|
|
};
|
|
|
|
export default S3Fetcher;
|