Simplify code for readability

This commit is contained in:
Alan Grainger
2024-11-12 21:01:39 +01:00
parent d5400c9a21
commit aeb27ef971
2 changed files with 62 additions and 46 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ app.use(express.json())
app.use(express.static('public', { setHeaders: addResponseHeaders }))
/*
* [ROUTE] An incoming request for a shared link
* [ROUTE] This is the request for a shared link
*/
app.get('/share/:key', async (req, res) => {
await immich.handleShareRequest({
@@ -36,7 +36,7 @@ app.post('/unlock', async (req, res) => {
})
/*
* [ROUTE] Output the buffer data for a photo or video
* [ROUTE] This is the direct link to a photo or video asset
*/
app.get('/:type(photo|video)/:key/:id/:size?', async (req, res) => {
// Add the headers configured in config.json (most likely `cache-control`)