]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server.js
Prepare embed page
[github/Chocobozzz/PeerTube.git] / server.js
index a7d7e781cf311709e702d22464066b8f4c29c06b..65cf69f7db034f9a5b71e3f1440258afea031049 100644 (file)
--- 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'))
 })