aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.js b/server.js
index a7d7e781c..65cf69f7d 100644
--- a/server.js
+++ b/server.js
@@ -89,6 +89,9 @@ const thumbnailsPhysicalPath = constants.CONFIG.STORAGE.THUMBNAILS_DIR
89app.use(constants.STATIC_PATHS.THUMBNAILS, express.static(thumbnailsPhysicalPath, { maxAge: constants.STATIC_MAX_AGE })) 89app.use(constants.STATIC_PATHS.THUMBNAILS, express.static(thumbnailsPhysicalPath, { maxAge: constants.STATIC_MAX_AGE }))
90 90
91// Client application 91// Client application
92app.use('/videos/embed', function (req, res, next) {
93 res.sendFile(path.join(__dirname, 'client/dist/standalone/videos/embed.html'))
94})
92app.use('/*', function (req, res, next) { 95app.use('/*', function (req, res, next) {
93 res.sendFile(path.join(__dirname, 'client/dist/index.html')) 96 res.sendFile(path.join(__dirname, 'client/dist/index.html'))
94}) 97})