diff options
Diffstat (limited to 'server/controllers/api/search.ts')
-rw-r--r-- | server/controllers/api/search.ts | 3 |
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 | |||
18 | import { | 18 | import { |
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 '../ | |||
34 | const searchRouter = express.Router() | 35 | const searchRouter = express.Router() |
35 | 36 | ||
36 | searchRouter.get('/videos', | 37 | searchRouter.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 | ||
47 | searchRouter.get('/video-channels', | 49 | searchRouter.get('/video-channels', |
50 | openapiOperationDoc({ operationId: 'searchChannels' }), | ||
48 | paginationValidator, | 51 | paginationValidator, |
49 | setDefaultPagination, | 52 | setDefaultPagination, |
50 | videoChannelsSearchSortValidator, | 53 | videoChannelsSearchSortValidator, |