diff options
author | Chocobozzz <me@florianbigard.com> | 2020-09-17 09:20:52 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-09 15:33:04 +0100 |
commit | c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e (patch) | |
tree | 79304b0152b0a38d33b26e65d4acdad0da4032a7 /server/controllers/api/videos/index.ts | |
parent | 110d463fece85e87a26aca48a6048ae0017a27b3 (diff) | |
download | PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.tar.gz PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.tar.zst PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.zip |
Live streaming implementation first step
Diffstat (limited to 'server/controllers/api/videos/index.ts')
-rw-r--r-- | server/controllers/api/videos/index.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index 15b6f214f..94f0361ee 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts | |||
@@ -63,6 +63,7 @@ import { blacklistRouter } from './blacklist' | |||
63 | import { videoCaptionsRouter } from './captions' | 63 | import { videoCaptionsRouter } from './captions' |
64 | import { videoCommentRouter } from './comment' | 64 | import { videoCommentRouter } from './comment' |
65 | import { videoImportsRouter } from './import' | 65 | import { videoImportsRouter } from './import' |
66 | import { liveRouter } from './live' | ||
66 | import { ownershipVideoRouter } from './ownership' | 67 | import { ownershipVideoRouter } from './ownership' |
67 | import { rateVideoRouter } from './rate' | 68 | import { rateVideoRouter } from './rate' |
68 | import { watchingRouter } from './watching' | 69 | import { watchingRouter } from './watching' |
@@ -96,6 +97,7 @@ videosRouter.use('/', videoCaptionsRouter) | |||
96 | videosRouter.use('/', videoImportsRouter) | 97 | videosRouter.use('/', videoImportsRouter) |
97 | videosRouter.use('/', ownershipVideoRouter) | 98 | videosRouter.use('/', ownershipVideoRouter) |
98 | videosRouter.use('/', watchingRouter) | 99 | videosRouter.use('/', watchingRouter) |
100 | videosRouter.use('/', liveRouter) | ||
99 | 101 | ||
100 | videosRouter.get('/categories', listVideoCategories) | 102 | videosRouter.get('/categories', listVideoCategories) |
101 | videosRouter.get('/licences', listVideoLicences) | 103 | videosRouter.get('/licences', listVideoLicences) |
@@ -304,7 +306,7 @@ async function addVideo (req: express.Request, res: express.Response) { | |||
304 | id: videoCreated.id, | 306 | id: videoCreated.id, |
305 | uuid: videoCreated.uuid | 307 | uuid: videoCreated.uuid |
306 | } | 308 | } |
307 | }).end() | 309 | }) |
308 | } | 310 | } |
309 | 311 | ||
310 | async function updateVideo (req: express.Request, res: express.Response) { | 312 | async function updateVideo (req: express.Request, res: express.Response) { |