From 4d563d69aa9b7971a4edbe8da37ca5e538152b72 Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Fri, 15 Nov 2024 16:01:10 +0100 Subject: [PATCH] Whitelist mode --- app/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/index.ts b/app/src/index.ts index 3f53723..0b0483a 100644 --- a/app/src/index.ts +++ b/app/src/index.ts @@ -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