mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
19 lines
391 B
JavaScript
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;
|