X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fclient.ts;h=5413f61e8ba36acb33a23d2ea226024a283fde63;hb=d4557fd3ecc8d4ed4fb0e5c868929bc36c959ed2;hp=dfffe5487d024b9781f3f6e115ff835a7af8545d;hpb=8afc19a6121569da054462c7cb351a3f13030a32;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/client.ts b/server/controllers/client.ts index dfffe5487..5413f61e8 100644 --- a/server/controllers/client.ts +++ b/server/controllers/client.ts @@ -21,6 +21,7 @@ const clientsRouter = express.Router() const distPath = join(root(), 'client', 'dist') const assetsImagesPath = join(root(), 'client', 'dist', 'assets', 'images') const embedPath = join(distPath, 'standalone', 'videos', 'embed.html') +const testEmbedPath = join(distPath, 'standalone', 'videos', 'test-embed.html') // Special route that add OpenGraph and oEmbed tags // Do not use a template engine for a so little thing @@ -32,6 +33,10 @@ clientsRouter.use('' + '/videos/embed', (req: express.Request, res: express.Response, next: express.NextFunction) => { res.sendFile(embedPath) }) +clientsRouter.use('' + + '/videos/test-embed', (req: express.Request, res: express.Response, next: express.NextFunction) => { + res.sendFile(testEmbedPath) +}) // Static HTML/CSS/JS client files