aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-05 14:16:39 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-07 08:58:29 +0200
commit9054a8b6e522dd8d46260dca85e9de94a2d806cf (patch)
tree5699e0c2853c17cbaef037eec4cb48cfbf0ec06d /server/controllers
parent2a71d286cec31964e0b70b5a7c53bfad401af554 (diff)
downloadPeerTube-9054a8b6e522dd8d46260dca85e9de94a2d806cf.tar.gz
PeerTube-9054a8b6e522dd8d46260dca85e9de94a2d806cf.tar.zst
PeerTube-9054a8b6e522dd8d46260dca85e9de94a2d806cf.zip
Handle playlist methods in embed api
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/client.ts9
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
37clientsRouter.use('/videos/embed', ...embedMiddlewares) 37clientsRouter.use('/videos/embed', ...embedMiddlewares)
38clientsRouter.use('/video-playlists/embed', ...embedMiddlewares) 38clientsRouter.use('/video-playlists/embed', ...embedMiddlewares)
39clientsRouter.use( 39
40 '/videos/test-embed', 40const testEmbedController = (req: express.Request, res: express.Response) => res.sendFile(testEmbedPath)
41 (req: express.Request, res: express.Response) => res.sendFile(testEmbedPath) 41
42) 42clientsRouter.use('/videos/test-embed', testEmbedController)
43clientsRouter.use('/video-playlists/test-embed', testEmbedController)
43 44
44// Static HTML/CSS/JS client files 45// Static HTML/CSS/JS client files
45const staticClientFiles = [ 46const staticClientFiles = [