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

20 lines
594 B
TypeScript
Raw Normal View History

2021-08-27 14:32:44 +02: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 16:02:38 +02:00
const searchRouter = express.Router()
2023-06-20 14:17:34 +02:00
searchRouter.use(apiRateLimiter)
2021-06-17 16:02:38 +02:00
searchRouter.use('/', searchVideosRouter)
searchRouter.use('/', searchChannelsRouter)
searchRouter.use('/', searchPlaylistsRouter)
// ---------------------------------------------------------------------------
export {
searchRouter
}