Updated logging

This commit is contained in:
Alan Grainger
2024-10-30 14:43:26 +01:00
parent b191442d4b
commit ffe26f1806
4 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ const getSize = (req: Request) => {
return req?.query?.size === 'thumbnail' ? ImageSize.thumbnail : ImageSize.original
}
const log = (message: string) => console.log(dayjs().format() + ' ' + message)
export const log = (message: string) => console.log(dayjs().format() + ' ' + message)
app.get('/share/:key', async (req, res) => {
res.set('Cache-Control', 'public, max-age=' + process.env.CACHE_AGE)