diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 11:47:30 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 11:47:30 +0100 |
commit | a030a9b234d315c180f40d8abd177637c1a91f6a (patch) | |
tree | eadc4abd230e3b9e6f4e789b8f0249e164ddf572 /controllers | |
parent | 9f10b2928df655c3672d9607e864e667d4bc903a (diff) | |
download | PeerTube-a030a9b234d315c180f40d8abd177637c1a91f6a.tar.gz PeerTube-a030a9b234d315c180f40d8abd177637c1a91f6a.tar.zst PeerTube-a030a9b234d315c180f40d8abd177637c1a91f6a.zip |
Require on the top of the files
Diffstat (limited to 'controllers')
-rw-r--r-- | controllers/api/v1/index.js | 10 | ||||
-rw-r--r-- | controllers/index.js | 7 |
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 | ||
5 | var router = express.Router() | 5 | var router = express.Router() |
6 | 6 | ||
7 | router.use('/pods', require('./pods')) | 7 | var podsController = require('./pods') |
8 | router.use('/remotevideos', require('./remoteVideos')) | 8 | var remoteVideosController = require('./remoteVideos') |
9 | router.use('/videos', require('./videos')) | 9 | var videosController = require('./videos') |
10 | |||
11 | router.use('/pods', podsController) | ||
12 | router.use('/remotevideos', remoteVideosController) | ||
13 | router.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 | ||
3 | var constants = require('../initializers/constants') | 3 | var constants = require('../initializers/constants') |
4 | 4 | ||
5 | var apiController = require('./api/' + constants.API_VERSION) | ||
6 | var viewsController = require('./views') | ||
7 | |||
5 | module.exports = { | 8 | module.exports = { |
6 | api: require('./api/' + constants.API_VERSION), | 9 | api: apiController, |
7 | views: require('./views') | 10 | views: viewsController |
8 | } | 11 | } |