diff options
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -65,8 +65,8 @@ app.use(require('connect-livereload')({ | |||
65 | require('segfault-handler').registerHandler() | 65 | require('segfault-handler').registerHandler() |
66 | 66 | ||
67 | // API routes | 67 | // API routes |
68 | const api_route = '/api/' + constants.API_VERSION | 68 | const apiRoute = '/api/' + constants.API_VERSION |
69 | app.use(api_route, routes.api) | 69 | app.use(apiRoute, routes.api) |
70 | 70 | ||
71 | // Static files | 71 | // Static files |
72 | app.use('/app', express.static(path.join(__dirname, '/client'), { maxAge: 0 })) | 72 | app.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 |
79 | const thumbnails_physical_path = path.join(__dirname, config.get('storage.thumbnails')) | 79 | const thumbnailsPhysicalPath = path.join(__dirname, config.get('storage.thumbnails')) |
80 | app.use(constants.THUMBNAILS_STATIC_PATH, express.static(thumbnails_physical_path, { maxAge: 0 })) | 80 | app.use(constants.THUMBNAILS_STATIC_PATH, express.static(thumbnailsPhysicalPath, { maxAge: 0 })) |
81 | 81 | ||
82 | // Client application | 82 | // Client application |
83 | app.use('/*', function (req, res, next) { | 83 | app.use('/*', function (req, res, next) { |