2016-12-30 05:53:41 -06:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
const express = require('express')
|
|
|
|
|
|
|
|
const utils = require('../../../helpers/utils')
|
|
|
|
|
|
|
|
const router = express.Router()
|
|
|
|
|
2017-03-19 12:56:10 -05:00
|
|
|
const podsRemoteController = require('./pods')
|
2016-12-30 05:53:41 -06:00
|
|
|
const videosRemoteController = require('./videos')
|
|
|
|
|
2017-03-19 12:56:10 -05:00
|
|
|
router.use('/pods', podsRemoteController)
|
2016-12-30 05:53:41 -06:00
|
|
|
router.use('/videos', videosRemoteController)
|
|
|
|
router.use('/*', utils.badRequest)
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
module.exports = router
|