aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/index.ts')
-rw-r--r--server/controllers/api/index.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/api/index.ts b/server/controllers/api/index.ts
index c386a6710..e928a7478 100644
--- a/server/controllers/api/index.ts
+++ b/server/controllers/api/index.ts
@@ -9,6 +9,7 @@ import { videosRouter } from './videos'
9import { badRequest } from '../../helpers/express-utils' 9import { badRequest } from '../../helpers/express-utils'
10import { videoChannelRouter } from './video-channel' 10import { videoChannelRouter } from './video-channel'
11import * as cors from 'cors' 11import * as cors from 'cors'
12import { searchRouter } from './search'
12 13
13const apiRouter = express.Router() 14const apiRouter = express.Router()
14 15
@@ -26,6 +27,7 @@ apiRouter.use('/accounts', accountsRouter)
26apiRouter.use('/video-channels', videoChannelRouter) 27apiRouter.use('/video-channels', videoChannelRouter)
27apiRouter.use('/videos', videosRouter) 28apiRouter.use('/videos', videosRouter)
28apiRouter.use('/jobs', jobsRouter) 29apiRouter.use('/jobs', jobsRouter)
30apiRouter.use('/search', searchRouter)
29apiRouter.use('/ping', pong) 31apiRouter.use('/ping', pong)
30apiRouter.use('/*', badRequest) 32apiRouter.use('/*', badRequest)
31 33