diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-11 21:19:34 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 14:23:11 +0200 |
commit | bc503c2a62dcf9aed6b8d90b68f0f27a7755ac01 (patch) | |
tree | a1fe1ad88afd29ee4d7cb05c480649d5a9c6f9a0 /server.js | |
parent | 881a5e68b64e4acd43408852bbdc914643d8fac6 (diff) | |
download | PeerTube-bc503c2a62dcf9aed6b8d90b68f0f27a7755ac01.tar.gz PeerTube-bc503c2a62dcf9aed6b8d90b68f0f27a7755ac01.tar.zst PeerTube-bc503c2a62dcf9aed6b8d90b68f0f27a7755ac01.zip |
Update to standard 7. Goodbye snake_case, I used to love you
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) { |