1
0
Fork 0
mirror of https://github.com/alangrainger/immich-public-proxy.git synced 2024-12-28 03:41:58 +00:00

Whitelist mode

This commit is contained in:
Alan Grainger 2024-11-15 16:01:10 +01:00
parent deafdfe181
commit 4d563d69aa

View file

@ -19,7 +19,7 @@ app.use(express.static('public', { setHeaders: addResponseHeaders }))
/*
* [ROUTE] This is the main URL that someone would visit if they are opening a shared link
*/
app.get('/share/:key/:mode?', async (req, res) => {
app.get('/share/:key/:mode(download)?', async (req, res) => {
await immich.handleShareRequest({
key: req.params.key,
mode: req.params.mode