diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2015-11-07 18:22:05 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2015-11-07 18:22:05 +0100 |
commit | e85782f7da44267e11714a63567feb7e0127126e (patch) | |
tree | 75b385cd609180bdec773f028e423408e0b79819 /routes/api/v1/index.js | |
parent | 34ca3b5225479a5da986c86ee4c42a73ae6df5ad (diff) | |
download | PeerTube-e85782f7da44267e11714a63567feb7e0127126e.tar.gz PeerTube-e85782f7da44267e11714a63567feb7e0127126e.tar.zst PeerTube-e85782f7da44267e11714a63567feb7e0127126e.zip |
Views refractoring
Diffstat (limited to 'routes/api/v1/index.js')
-rw-r--r-- | routes/api/v1/index.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/routes/api/v1/index.js b/routes/api/v1/index.js index 9a4ec8438..f5504ad85 100644 --- a/routes/api/v1/index.js +++ b/routes/api/v1/index.js | |||
@@ -1,10 +1,12 @@ | |||
1 | ;(function () { | 1 | ;(function () { |
2 | 'use strict' | 2 | 'use strict' |
3 | 3 | ||
4 | var api = {} | 4 | var express = require('express') |
5 | api.videos = require('./videos') | 5 | var router = express.Router() |
6 | api.remoteVideos = require('./remoteVideos') | ||
7 | api.pods = require('./pods') | ||
8 | 6 | ||
9 | module.exports = api | 7 | router.use('/videos', require('./videos')) |
8 | router.use('/remotevideos', require('./remoteVideos')) | ||
9 | router.use('/pods', require('./pods')) | ||
10 | |||
11 | module.exports = router | ||
10 | })() | 12 | })() |