Selective merge from PR #205
This commit is contained in:
@@ -110,6 +110,15 @@ app.post('/share/unlock', async (req, res) => {
|
||||
res.send()
|
||||
})
|
||||
|
||||
/*
|
||||
* [ROUTE] Catch accidental POST requests to share URLs (e.g. from browser history
|
||||
* state issues) and force a clean GET redirect.
|
||||
* See https://github.com/alangrainger/immich-public-proxy/pull/205
|
||||
*/
|
||||
app.post('/:shareType(share|s)/:key/:mode(download)?', (req, res) => {
|
||||
res.redirect(303, req.originalUrl)
|
||||
})
|
||||
|
||||
/*
|
||||
* [ROUTE] This is the direct link to a photo or video asset
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user