aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/remote/index.ts
blob: d3522772bec9d38298152e7e06b172cb08541236 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import * as express from 'express'

import { badRequest } from '../../../helpers'

import { remotePodsRouter } from './pods'
import { remoteVideosRouter } from './videos'

const remoteRouter = express.Router()

remoteRouter.use('/pods', remotePodsRouter)
remoteRouter.use('/videos', remoteVideosRouter)
remoteRouter.use('/*', badRequest)

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

export {
  remoteRouter
}