PeerTube/server/core/controllers/api/search/index.ts

20 lines
594 B
TypeScript
Raw Normal View History

2021-08-27 07:32:44 -05:00
import express from 'express'
import { apiRateLimiter } from '@server/middlewares/index.js'
import { searchChannelsRouter } from './search-video-channels.js'
import { searchPlaylistsRouter } from './search-video-playlists.js'
import { searchVideosRouter } from './search-videos.js'
2021-06-17 09:02:38 -05:00
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
}