diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2015-11-06 17:34:15 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2015-11-06 17:34:31 +0100 |
commit | f5a60a5138135a3412dfbcfd6e564f7aa47a55c2 (patch) | |
tree | 2516f410a33792f9112b4b4253929e5292908a3f /routes/api | |
parent | a6fa7ac141637a5026388157084c439f920c5ff1 (diff) | |
download | PeerTube-f5a60a5138135a3412dfbcfd6e564f7aa47a55c2.tar.gz PeerTube-f5a60a5138135a3412dfbcfd6e564f7aa47a55c2.tar.zst PeerTube-f5a60a5138135a3412dfbcfd6e564f7aa47a55c2.zip |
Add API versionning
Diffstat (limited to 'routes/api')
-rw-r--r-- | routes/api/v1/index.js (renamed from routes/api/index.js) | 0 | ||||
-rw-r--r-- | routes/api/v1/pods.js (renamed from routes/api/pods.js) | 4 | ||||
-rw-r--r-- | routes/api/v1/remoteVideos.js (renamed from routes/api/remoteVideos.js) | 4 | ||||
-rw-r--r-- | routes/api/v1/videos.js (renamed from routes/api/videos.js) | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/routes/api/index.js b/routes/api/v1/index.js index 9a4ec8438..9a4ec8438 100644 --- a/routes/api/index.js +++ b/routes/api/v1/index.js | |||
diff --git a/routes/api/pods.js b/routes/api/v1/pods.js index 8fa29b4f7..961388fcb 100644 --- a/routes/api/pods.js +++ b/routes/api/v1/pods.js | |||
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | var express = require('express') | 4 | var express = require('express') |
5 | var router = express.Router() | 5 | var router = express.Router() |
6 | var middleware = require('../../middlewares') | 6 | var middleware = require('../../../middlewares') |
7 | var pods = require('../../src/pods') | 7 | var pods = require('../../../src/pods') |
8 | 8 | ||
9 | function listPods (req, res, next) { | 9 | function listPods (req, res, next) { |
10 | pods.list(function (err, pods_list) { | 10 | pods.list(function (err, pods_list) { |
diff --git a/routes/api/remoteVideos.js b/routes/api/v1/remoteVideos.js index 2ae3ce5bc..88b8e879b 100644 --- a/routes/api/remoteVideos.js +++ b/routes/api/v1/remoteVideos.js | |||
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | var express = require('express') | 4 | var express = require('express') |
5 | var router = express.Router() | 5 | var router = express.Router() |
6 | var middleware = require('../../middlewares') | 6 | var middleware = require('../../../middlewares') |
7 | var videos = require('../../src/videos') | 7 | var videos = require('../../../src/videos') |
8 | 8 | ||
9 | function addRemoteVideos (req, res, next) { | 9 | function addRemoteVideos (req, res, next) { |
10 | videos.addRemote(req.body.data, function (err, video) { | 10 | videos.addRemote(req.body.data, function (err, video) { |
diff --git a/routes/api/videos.js b/routes/api/v1/videos.js index 087fc96bc..246620ac6 100644 --- a/routes/api/videos.js +++ b/routes/api/v1/videos.js | |||
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | var express = require('express') | 4 | var express = require('express') |
5 | var router = express.Router() | 5 | var router = express.Router() |
6 | var middleware = require('../../middlewares') | 6 | var middleware = require('../../../middlewares') |
7 | var videos = require('../../src/videos') | 7 | var videos = require('../../../src/videos') |
8 | 8 | ||
9 | function listVideos (req, res, next) { | 9 | function listVideos (req, res, next) { |
10 | videos.list(function (err, videos_list) { | 10 | videos.list(function (err, videos_list) { |