diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-11-07 22:35:37 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-11-07 22:35:37 +0100 |
commit | 3bb2c7f99dd495adac8e486e98f135c183642381 (patch) | |
tree | 9e5d72adc1cc667c96e1c955dfe2048b3d6e2eeb /server.js | |
parent | 81ca2cd3f4f4ff2808fce512b38d735c9f550218 (diff) | |
download | PeerTube-3bb2c7f99dd495adac8e486e98f135c183642381.tar.gz PeerTube-3bb2c7f99dd495adac8e486e98f135c183642381.tar.zst PeerTube-3bb2c7f99dd495adac8e486e98f135c183642381.zip |
Prepare embed page
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -89,6 +89,9 @@ const thumbnailsPhysicalPath = constants.CONFIG.STORAGE.THUMBNAILS_DIR | |||
89 | app.use(constants.STATIC_PATHS.THUMBNAILS, express.static(thumbnailsPhysicalPath, { maxAge: constants.STATIC_MAX_AGE })) | 89 | app.use(constants.STATIC_PATHS.THUMBNAILS, express.static(thumbnailsPhysicalPath, { maxAge: constants.STATIC_MAX_AGE })) |
90 | 90 | ||
91 | // Client application | 91 | // Client application |
92 | app.use('/videos/embed', function (req, res, next) { | ||
93 | res.sendFile(path.join(__dirname, 'client/dist/standalone/videos/embed.html')) | ||
94 | }) | ||
92 | app.use('/*', function (req, res, next) { | 95 | app.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 | }) |