1
0
Fork 0
peertube/server/controllers/api/remote/index.ts
2017-06-05 21:53:49 +02:00

18 lines
445 B
TypeScript

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
}