aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/server.js b/server.js
index 204cc146f..ef26ea773 100644
--- a/server.js
+++ b/server.js
@@ -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
79const thumbnails_physical_path = path.join(__dirname, config.get('storage.thumbnails'))
80app.use(constants.THUMBNAILS_STATIC_PATH, express.static(thumbnails_physical_path, { maxAge: 0 }))
81
78// Client application 82// Client application
79app.use('/*', function (req, res, next) { 83app.use('/*', function (req, res, next) {
80 res.sendFile(path.join(__dirname, 'client/index.html')) 84 res.sendFile(path.join(__dirname, 'client/index.html'))