2021-08-27 08:32:44 -04:00
|
|
|
import express from 'express'
|
2023-06-20 08:17:34 -04:00
|
|
|
import { apiRateLimiter } from '@server/middlewares'
|
2021-06-17 10:02:38 -04: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 08:17:34 -04:00
|
|
|
searchRouter.use(apiRateLimiter)
|
|
|
|
|
2021-06-17 10:02:38 -04:00
|
|
|
searchRouter.use('/', searchVideosRouter)
|
|
|
|
searchRouter.use('/', searchChannelsRouter)
|
|
|
|
searchRouter.use('/', searchPlaylistsRouter)
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
export {
|
|
|
|
searchRouter
|
|
|
|
}
|