mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
server/server -> server/core
This commit is contained in:
parent
114327d4ce
commit
5a3d0650c9
838 changed files with 111 additions and 111 deletions
19
server/core/controllers/api/search/index.ts
Normal file
19
server/core/controllers/api/search/index.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue