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 * [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({ await immich.handleShareRequest({
key: req.params.key, key: req.params.key,
mode: req.params.mode mode: req.params.mode