aboutsummaryrefslogtreecommitdiff
path: root/viewer/vue.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/vue.config.js')
-rw-r--r--viewer/vue.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/viewer/vue.config.js b/viewer/vue.config.js
index 3bb56e5..f116619 100644
--- a/viewer/vue.config.js
+++ b/viewer/vue.config.js
@@ -15,7 +15,7 @@ module.exports = {
15 app.get("/gallery/*", (req, res) => { 15 app.get("/gallery/*", (req, res) => {
16 const fs = require("fs"); 16 const fs = require("fs");
17 const fileName = req.url.replace(/^\/gallery/, "../example"); 17 const fileName = req.url.replace(/^\/gallery/, "../example");
18 const file = fs.readFileSync(fileName); 18 const file = fs.readFileSync(decodeURIComponent(fileName));
19 res.end(file); 19 res.end(file);
20 }); 20 });
21 } 21 }