2021-08-27 07:32:44 -05:00
|
|
|
import express from 'express'
|
2023-06-20 07:17:34 -05:00
|
|
|
import { apiRateLimiter } from '@server/middlewares'
|
2021-06-17 09:02:38 -05:00
|
|
|
import { searchChannelsRouter } from './search-video-channels'
|
|
|
|
import { searchPlaylistsRouter } from './search-video-playlists'
|
|
|
|
import { searchVideosRouter } from './search-videos'
|
|
|
|
|
|
|
|
const searchRouter = express.Router()
|
|
|
|
|
2023-06-20 07:17:34 -05:00
|
|
|
searchRouter.use(apiRateLimiter)
|
|
|
|
|
2021-06-17 09:02:38 -05:00
|
|
|
searchRouter.use('/', searchVideosRouter)
|
|
|
|
searchRouter.use('/', searchChannelsRouter)
|
|
|
|
searchRouter.use('/', searchPlaylistsRouter)
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
export {
|
|
|
|
searchRouter
|
|
|
|
}
|