X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server.js;h=65cf69f7db034f9a5b71e3f1440258afea031049;hb=3bb2c7f99dd495adac8e486e98f135c183642381;hp=a7d7e781cf311709e702d22464066b8f4c29c06b;hpb=81ca2cd3f4f4ff2808fce512b38d735c9f550218;p=github%2FChocobozzz%2FPeerTube.git 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')) })