diff options
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -75,6 +75,10 @@ app.use('/app/*', function (req, res, next) { | |||
75 | res.sendStatus(404) | 75 | res.sendStatus(404) |
76 | }) | 76 | }) |
77 | 77 | ||
78 | // Thumbnails path for express | ||
79 | const thumbnails_physical_path = path.join(__dirname, config.get('storage.thumbnails')) | ||
80 | app.use(constants.THUMBNAILS_STATIC_PATH, express.static(thumbnails_physical_path, { maxAge: 0 })) | ||
81 | |||
78 | // Client application | 82 | // Client application |
79 | app.use('/*', function (req, res, next) { | 83 | app.use('/*', function (req, res, next) { |
80 | res.sendFile(path.join(__dirname, 'client/index.html')) | 84 | res.sendFile(path.join(__dirname, 'client/index.html')) |