aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/server.js b/server.js
index ef26ea773..989c60477 100644
--- a/server.js
+++ b/server.js
@@ -65,8 +65,8 @@ app.use(require('connect-livereload')({
65require('segfault-handler').registerHandler() 65require('segfault-handler').registerHandler()
66 66
67// API routes 67// API routes
68const api_route = '/api/' + constants.API_VERSION 68const apiRoute = '/api/' + constants.API_VERSION
69app.use(api_route, routes.api) 69app.use(apiRoute, routes.api)
70 70
71// Static files 71// Static files
72app.use('/app', express.static(path.join(__dirname, '/client'), { maxAge: 0 })) 72app.use('/app', express.static(path.join(__dirname, '/client'), { maxAge: 0 }))
@@ -76,8 +76,8 @@ app.use('/app/*', function (req, res, next) {
76}) 76})
77 77
78// Thumbnails path for express 78// Thumbnails path for express
79const thumbnails_physical_path = path.join(__dirname, config.get('storage.thumbnails')) 79const thumbnailsPhysicalPath = path.join(__dirname, config.get('storage.thumbnails'))
80app.use(constants.THUMBNAILS_STATIC_PATH, express.static(thumbnails_physical_path, { maxAge: 0 })) 80app.use(constants.THUMBNAILS_STATIC_PATH, express.static(thumbnailsPhysicalPath, { maxAge: 0 }))
81 81
82// Client application 82// Client application
83app.use('/*', function (req, res, next) { 83app.use('/*', function (req, res, next) {