diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-05 14:16:39 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-07 08:58:29 +0200 |
commit | 9054a8b6e522dd8d46260dca85e9de94a2d806cf (patch) | |
tree | 5699e0c2853c17cbaef037eec4cb48cfbf0ec06d /server | |
parent | 2a71d286cec31964e0b70b5a7c53bfad401af554 (diff) | |
download | PeerTube-9054a8b6e522dd8d46260dca85e9de94a2d806cf.tar.gz PeerTube-9054a8b6e522dd8d46260dca85e9de94a2d806cf.tar.zst PeerTube-9054a8b6e522dd8d46260dca85e9de94a2d806cf.zip |
Handle playlist methods in embed api
Diffstat (limited to 'server')
-rw-r--r-- | server/controllers/client.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/server/controllers/client.ts b/server/controllers/client.ts index b97c935a5..39a198b59 100644 --- a/server/controllers/client.ts +++ b/server/controllers/client.ts | |||
@@ -36,10 +36,11 @@ const embedMiddlewares = [ | |||
36 | 36 | ||
37 | clientsRouter.use('/videos/embed', ...embedMiddlewares) | 37 | clientsRouter.use('/videos/embed', ...embedMiddlewares) |
38 | clientsRouter.use('/video-playlists/embed', ...embedMiddlewares) | 38 | clientsRouter.use('/video-playlists/embed', ...embedMiddlewares) |
39 | clientsRouter.use( | 39 | |
40 | '/videos/test-embed', | 40 | const testEmbedController = (req: express.Request, res: express.Response) => res.sendFile(testEmbedPath) |
41 | (req: express.Request, res: express.Response) => res.sendFile(testEmbedPath) | 41 | |
42 | ) | 42 | clientsRouter.use('/videos/test-embed', testEmbedController) |
43 | clientsRouter.use('/video-playlists/test-embed', testEmbedController) | ||
43 | 44 | ||
44 | // Static HTML/CSS/JS client files | 45 | // Static HTML/CSS/JS client files |
45 | const staticClientFiles = [ | 46 | const staticClientFiles = [ |