Skip to content
Snippets Groups Projects
Commit d98fff6e authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

Merge branch 'faraday-master' of gitlab.coko.foundation:xpub/xpub into faraday-master

parents 3ef080d8 ef532f95
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ const AWSBackend = app => {
app.get('/api/aws/:fragmentId/:fileId', authBearer, async (req, res) => {
const params = {
Bucket: process.env.AWS_BUCKET,
Key: `${req.params.fragmentId}${req.params.fileId}`,
Key: `${req.params.fragmentId}/${req.params.fileId}`,
}
s3.getSignedUrl('getObject', params, (err, data) => {
......@@ -75,7 +75,7 @@ const AWSBackend = app => {
app.delete('/api/aws/:fragmentId/:fileId', authBearer, async (req, res) => {
const params = {
Bucket: process.env.AWS_BUCKET,
Key: `${req.params.fragmentId}${req.params.fileId}`,
Key: `${req.params.fragmentId}/${req.params.fileId}`,
}
s3.deleteObject(params, (err, data) => {
if (err) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment