aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/client.ts5
1 files changed, 5 insertions, 0 deletions
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()
21const distPath = join(root(), 'client', 'dist') 21const distPath = join(root(), 'client', 'dist')
22const assetsImagesPath = join(root(), 'client', 'dist', 'assets', 'images') 22const assetsImagesPath = join(root(), 'client', 'dist', 'assets', 'images')
23const embedPath = join(distPath, 'standalone', 'videos', 'embed.html') 23const embedPath = join(distPath, 'standalone', 'videos', 'embed.html')
24const testEmbedPath = join(distPath, 'standalone', 'videos', 'test-embed.html')
24 25
25// Special route that add OpenGraph and oEmbed tags 26// Special route that add OpenGraph and oEmbed tags
26// Do not use a template engine for a so little thing 27// Do not use a template engine for a so little thing
@@ -32,6 +33,10 @@ clientsRouter.use('' +
32 '/videos/embed', (req: express.Request, res: express.Response, next: express.NextFunction) => { 33 '/videos/embed', (req: express.Request, res: express.Response, next: express.NextFunction) => {
33 res.sendFile(embedPath) 34 res.sendFile(embedPath)
34}) 35})
36clientsRouter.use('' +
37 '/videos/test-embed', (req: express.Request, res: express.Response, next: express.NextFunction) => {
38 res.sendFile(testEmbedPath)
39})
35 40
36// Static HTML/CSS/JS client files 41// Static HTML/CSS/JS client files
37 42