Selective merge from PR #205

This commit is contained in:
Alan Grainger
2026-04-24 10:39:44 +12:00
parent e0411d1133
commit a1000840f3
+9
View File
@@ -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
*/