diff options
Diffstat (limited to 'server/controllers/api/videos/index.ts')
-rw-r--r-- | server/controllers/api/videos/index.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index 2b5afd632..244d91914 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts | |||
@@ -86,7 +86,7 @@ videosRouter.get('/', | |||
86 | ) | 86 | ) |
87 | videosRouter.put('/:id', | 87 | videosRouter.put('/:id', |
88 | authenticate, | 88 | authenticate, |
89 | videosUpdateValidator, | 89 | asyncMiddleware(videosUpdateValidator), |
90 | asyncMiddleware(updateVideoRetryWrapper) | 90 | asyncMiddleware(updateVideoRetryWrapper) |
91 | ) | 91 | ) |
92 | videosRouter.post('/upload', | 92 | videosRouter.post('/upload', |
@@ -97,17 +97,17 @@ videosRouter.post('/upload', | |||
97 | ) | 97 | ) |
98 | 98 | ||
99 | videosRouter.get('/:id/description', | 99 | videosRouter.get('/:id/description', |
100 | videosGetValidator, | 100 | asyncMiddleware(videosGetValidator), |
101 | asyncMiddleware(getVideoDescription) | 101 | asyncMiddleware(getVideoDescription) |
102 | ) | 102 | ) |
103 | videosRouter.get('/:id', | 103 | videosRouter.get('/:id', |
104 | videosGetValidator, | 104 | asyncMiddleware(videosGetValidator), |
105 | getVideo | 105 | getVideo |
106 | ) | 106 | ) |
107 | 107 | ||
108 | videosRouter.delete('/:id', | 108 | videosRouter.delete('/:id', |
109 | authenticate, | 109 | authenticate, |
110 | videosRemoveValidator, | 110 | asyncMiddleware(videosRemoveValidator), |
111 | asyncMiddleware(removeVideoRetryWrapper) | 111 | asyncMiddleware(removeVideoRetryWrapper) |
112 | ) | 112 | ) |
113 | 113 | ||