aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/controllers/api/v1/index.js
blob: b562bc2afa6cd6e1af70b606697de11edc732e88 (plain) (tree)
1
2
3
4
5
6
            
 
                                
 
                             
 






                                                      
                            
 
                                                                              
 
                       



                                                                              
                                    
 
'use strict'

var express = require('express')

var router = express.Router()

var podsController = require('./pods')
var remoteVideosController = require('./remoteVideos')
var videosController = require('./videos')

router.use('/pods', podsController)
router.use('/remotevideos', remoteVideosController)
router.use('/videos', videosController)
router.use('/*', badRequest)

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

module.exports = router

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

function badRequest (req, res, next) {
  res.type('json').status(400).end()
}