diff options
Diffstat (limited to 'server/controllers/api/videos/index.ts')
-rw-r--r-- | server/controllers/api/videos/index.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index 3f96f142c..bfebc54ed 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts | |||
@@ -6,6 +6,7 @@ import { addOptimizeOrMergeAudioJob } from '@server/helpers/video' | |||
6 | import { createTorrentAndSetInfoHash } from '@server/helpers/webtorrent' | 6 | import { createTorrentAndSetInfoHash } from '@server/helpers/webtorrent' |
7 | import { changeVideoChannelShare } from '@server/lib/activitypub/share' | 7 | import { changeVideoChannelShare } from '@server/lib/activitypub/share' |
8 | import { getVideoActivityPubUrl } from '@server/lib/activitypub/url' | 8 | import { getVideoActivityPubUrl } from '@server/lib/activitypub/url' |
9 | import { LiveManager } from '@server/lib/live-manager' | ||
9 | import { buildLocalVideoFromReq, buildVideoThumbnailsFromReq, setVideoTags } from '@server/lib/video' | 10 | import { buildLocalVideoFromReq, buildVideoThumbnailsFromReq, setVideoTags } from '@server/lib/video' |
10 | import { getVideoFilePath } from '@server/lib/video-paths' | 11 | import { getVideoFilePath } from '@server/lib/video-paths' |
11 | import { getServerActor } from '@server/models/application/application' | 12 | import { getServerActor } from '@server/models/application/application' |
@@ -57,7 +58,6 @@ import { | |||
57 | import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update' | 58 | import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update' |
58 | import { VideoModel } from '../../../models/video/video' | 59 | import { VideoModel } from '../../../models/video/video' |
59 | import { VideoFileModel } from '../../../models/video/video-file' | 60 | import { VideoFileModel } from '../../../models/video/video-file' |
60 | import { abuseVideoRouter } from './abuse' | ||
61 | import { blacklistRouter } from './blacklist' | 61 | import { blacklistRouter } from './blacklist' |
62 | import { videoCaptionsRouter } from './captions' | 62 | import { videoCaptionsRouter } from './captions' |
63 | import { videoCommentRouter } from './comment' | 63 | import { videoCommentRouter } from './comment' |
@@ -66,7 +66,6 @@ import { liveRouter } from './live' | |||
66 | import { ownershipVideoRouter } from './ownership' | 66 | import { ownershipVideoRouter } from './ownership' |
67 | import { rateVideoRouter } from './rate' | 67 | import { rateVideoRouter } from './rate' |
68 | import { watchingRouter } from './watching' | 68 | import { watchingRouter } from './watching' |
69 | import { LiveManager } from '@server/lib/live-manager' | ||
70 | 69 | ||
71 | const auditLogger = auditLoggerFactory('videos') | 70 | const auditLogger = auditLoggerFactory('videos') |
72 | const videosRouter = express.Router() | 71 | const videosRouter = express.Router() |
@@ -89,7 +88,6 @@ const reqVideoFileUpdate = createReqFiles( | |||
89 | } | 88 | } |
90 | ) | 89 | ) |
91 | 90 | ||
92 | videosRouter.use('/', abuseVideoRouter) | ||
93 | videosRouter.use('/', blacklistRouter) | 91 | videosRouter.use('/', blacklistRouter) |
94 | videosRouter.use('/', rateVideoRouter) | 92 | videosRouter.use('/', rateVideoRouter) |
95 | videosRouter.use('/', videoCommentRouter) | 93 | videosRouter.use('/', videoCommentRouter) |