From 3bb2c7f99dd495adac8e486e98f135c183642381 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 7 Nov 2016 22:35:37 +0100 Subject: Prepare embed page --- server.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server.js') 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 app.use(constants.STATIC_PATHS.THUMBNAILS, express.static(thumbnailsPhysicalPath, { maxAge: constants.STATIC_MAX_AGE })) // Client application +app.use('/videos/embed', function (req, res, next) { + res.sendFile(path.join(__dirname, 'client/dist/standalone/videos/embed.html')) +}) app.use('/*', function (req, res, next) { res.sendFile(path.join(__dirname, 'client/dist/index.html')) }) -- cgit v1.2.3