diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/client.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/controllers/client.ts b/server/controllers/client.ts index 88f51907b..8c7f881a9 100644 --- a/server/controllers/client.ts +++ b/server/controllers/client.ts | |||
@@ -17,6 +17,7 @@ const testEmbedPath = join(distPath, 'standalone', 'videos', 'test-embed.html') | |||
17 | 17 | ||
18 | // Special route that add OpenGraph and oEmbed tags | 18 | // Special route that add OpenGraph and oEmbed tags |
19 | // Do not use a template engine for a so little thing | 19 | // Do not use a template engine for a so little thing |
20 | clientsRouter.use('/videos/watch/playlist/:id', asyncMiddleware(generateWatchPlaylistHtmlPage)) | ||
20 | clientsRouter.use('/videos/watch/:id', asyncMiddleware(generateWatchHtmlPage)) | 21 | clientsRouter.use('/videos/watch/:id', asyncMiddleware(generateWatchHtmlPage)) |
21 | clientsRouter.use('/accounts/:nameWithHost', asyncMiddleware(generateAccountHtmlPage)) | 22 | clientsRouter.use('/accounts/:nameWithHost', asyncMiddleware(generateAccountHtmlPage)) |
22 | clientsRouter.use('/video-channels/:nameWithHost', asyncMiddleware(generateVideoChannelHtmlPage)) | 23 | clientsRouter.use('/video-channels/:nameWithHost', asyncMiddleware(generateVideoChannelHtmlPage)) |
@@ -134,6 +135,12 @@ async function generateWatchHtmlPage (req: express.Request, res: express.Respons | |||
134 | return sendHTML(html, res) | 135 | return sendHTML(html, res) |
135 | } | 136 | } |
136 | 137 | ||
138 | async function generateWatchPlaylistHtmlPage (req: express.Request, res: express.Response) { | ||
139 | const html = await ClientHtml.getWatchPlaylistHTMLPage(req.params.id + '', req, res) | ||
140 | |||
141 | return sendHTML(html, res) | ||
142 | } | ||
143 | |||
137 | async function generateAccountHtmlPage (req: express.Request, res: express.Response) { | 144 | async function generateAccountHtmlPage (req: express.Request, res: express.Response) { |
138 | const html = await ClientHtml.getAccountHTMLPage(req.params.nameWithHost, req, res) | 145 | const html = await ClientHtml.getAccountHTMLPage(req.params.nameWithHost, req, res) |
139 | 146 | ||