Proxy the attachment querystring param

This commit is contained in:
PJ 2020-02-04 16:37:19 +01:00
parent 4833eac81b
commit 65b12c0dce
1 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,9 @@ export class Server {
},
proxyReqPathResolver: req => {
const { hash } = req.params
return `/skynet/skylink/${hash}`
return req.query && req.query.attachement
? `/skynet/skylink/${hash}?attachment=true`
: `/skynet/skylink/${hash}`
}
})
)