feat: presigned urls for inventories
This commit is contained in:
@@ -32,5 +32,13 @@ module.exports = {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
generatePresignedUrl: (url) => {
|
||||
const key = url.split(".com/")[1];
|
||||
return S3.getSignedUrl("getObject", {
|
||||
Bucket: AWS_S3_BUCKET,
|
||||
Key: key,
|
||||
Expires: 600,
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user