Chocobozzz/PeerTube

View on GitHub
server/core/controllers/api/search/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
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'

const searchRouter = express.Router()

searchRouter.use(apiRateLimiter)

searchRouter.use('/', searchVideosRouter)
searchRouter.use('/', searchChannelsRouter)
searchRouter.use('/', searchPlaylistsRouter)

// ---------------------------------------------------------------------------

export {
  searchRouter
}