aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/search.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/search.ts')
-rw-r--r--server/controllers/api/search.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/controllers/api/search.ts b/server/controllers/api/search.ts
index a3b66b2a6..c975c5c3c 100644
--- a/server/controllers/api/search.ts
+++ b/server/controllers/api/search.ts
@@ -18,6 +18,7 @@ import { getOrCreateAPActor, loadActorUrlOrGetFromWebfinger } from '../../lib/ac
18import { 18import {
19 asyncMiddleware, 19 asyncMiddleware,
20 commonVideosFiltersValidator, 20 commonVideosFiltersValidator,
21 openapiOperationDoc,
21 optionalAuthenticate, 22 optionalAuthenticate,
22 paginationValidator, 23 paginationValidator,
23 setDefaultPagination, 24 setDefaultPagination,
@@ -34,6 +35,7 @@ import { MChannelAccountDefault, MVideoAccountLightBlacklistAllFiles } from '../
34const searchRouter = express.Router() 35const searchRouter = express.Router()
35 36
36searchRouter.get('/videos', 37searchRouter.get('/videos',
38 openapiOperationDoc({ operationId: 'searchVideos' }),
37 paginationValidator, 39 paginationValidator,
38 setDefaultPagination, 40 setDefaultPagination,
39 videosSearchSortValidator, 41 videosSearchSortValidator,
@@ -45,6 +47,7 @@ searchRouter.get('/videos',
45) 47)
46 48
47searchRouter.get('/video-channels', 49searchRouter.get('/video-channels',
50 openapiOperationDoc({ operationId: 'searchChannels' }),
48 paginationValidator, 51 paginationValidator,
49 setDefaultPagination, 52 setDefaultPagination,
50 videoChannelsSearchSortValidator, 53 videoChannelsSearchSortValidator,