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:
parent
81ca2cd3f4
commit
3bb2c7f99d
5 changed files with 130 additions and 1 deletions
|
@ -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'))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue