aboutsummaryrefslogtreecommitdiffhomepage
path: root/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'controllers')
-rw-r--r--controllers/api/v1/index.js10
-rw-r--r--controllers/index.js7
2 files changed, 12 insertions, 5 deletions
diff --git a/controllers/api/v1/index.js b/controllers/api/v1/index.js
index fc6bf4946..07a68ed9d 100644
--- a/controllers/api/v1/index.js
+++ b/controllers/api/v1/index.js
@@ -4,9 +4,13 @@ var express = require('express')
4 4
5var router = express.Router() 5var router = express.Router()
6 6
7router.use('/pods', require('./pods')) 7var podsController = require('./pods')
8router.use('/remotevideos', require('./remoteVideos')) 8var remoteVideosController = require('./remoteVideos')
9router.use('/videos', require('./videos')) 9var videosController = require('./videos')
10
11router.use('/pods', podsController)
12router.use('/remotevideos', remoteVideosController)
13router.use('/videos', videosController)
10 14
11// --------------------------------------------------------------------------- 15// ---------------------------------------------------------------------------
12 16
diff --git a/controllers/index.js b/controllers/index.js
index 35a0191c5..858f493da 100644
--- a/controllers/index.js
+++ b/controllers/index.js
@@ -2,7 +2,10 @@
2 2
3var constants = require('../initializers/constants') 3var constants = require('../initializers/constants')
4 4
5var apiController = require('./api/' + constants.API_VERSION)
6var viewsController = require('./views')
7
5module.exports = { 8module.exports = {
6 api: require('./api/' + constants.API_VERSION), 9 api: apiController,
7 views: require('./views') 10 views: viewsController
8} 11}