1
0
Fork 0
peertube/server/controllers/api/search/index.ts
2023-06-20 14:17:34 +02:00

19 lines
576 B
TypeScript

import express from 'express'
import { apiRateLimiter } from '@server/middlewares'
import { searchChannelsRouter } from './search-video-channels'
import { searchPlaylistsRouter } from './search-video-playlists'
import { searchVideosRouter } from './search-videos'
const searchRouter = express.Router()
searchRouter.use(apiRateLimiter)
searchRouter.use('/', searchVideosRouter)
searchRouter.use('/', searchChannelsRouter)
searchRouter.use('/', searchPlaylistsRouter)
// ---------------------------------------------------------------------------
export {
searchRouter
}