1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Prepare embed page

This commit is contained in:
Chocobozzz 2016-11-07 22:35:37 +01:00
parent 81ca2cd3f4
commit 3bb2c7f99d
5 changed files with 130 additions and 1 deletions

View file

@ -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'))
})