diff --git a/src/index.js b/src/index.js index cf8a7b9..1896884 100644 --- a/src/index.js +++ b/src/index.js @@ -401,9 +401,9 @@ app.get('/images/*path', cache(), async (req, res, next) => { }); // please comment this section before upload to Cloud Run -// app.get('/original/*origin_path', async (req, res) => { -// res.sendFile(`${__dirname}${req.path.replace("original", "images")}`); -// }); +app.get('/original/*origin_path', async (req, res) => { + res.sendFile(`${__dirname}${req.path.replace("original", "images")}`); +}); // block any request not coming with /images/ app.get('/*others', async (req, res) => { diff --git a/src/package-lock.json b/src/package-lock.json index efc66cf..82422a7 100644 --- a/src/package-lock.json +++ b/src/package-lock.json @@ -1,12 +1,12 @@ { "name": "imageoptimization", - "version": "1.0.5", + "version": "1.0.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "imageoptimization", - "version": "1.0.5", + "version": "1.0.6", "license": "MIT", "dependencies": { "express": ">=4.20.0",