diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-03-14 13:50:19 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-03-14 13:50:19 +0100 |
commit | dc8bc31be517a53e8fbe7100cfe45cd73f596de0 (patch) | |
tree | c0b0d6641dd352dafff93b8fd33ddb262b59aa47 /server/controllers/api/v1/pods.js | |
parent | bd324a669218f9ed302f7f54b36ee535d25c9733 (diff) | |
download | PeerTube-dc8bc31be517a53e8fbe7100cfe45cd73f596de0.tar.gz PeerTube-dc8bc31be517a53e8fbe7100cfe45cd73f596de0.tar.zst PeerTube-dc8bc31be517a53e8fbe7100cfe45cd73f596de0.zip |
Angular application :first draft
Diffstat (limited to 'server/controllers/api/v1/pods.js')
-rw-r--r-- | server/controllers/api/v1/pods.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/v1/pods.js b/server/controllers/api/v1/pods.js index c93a86ee8..fa9832914 100644 --- a/server/controllers/api/v1/pods.js +++ b/server/controllers/api/v1/pods.js | |||
@@ -66,7 +66,7 @@ function makeFriends (req, res, next) { | |||
66 | friends.makeFriends(function (err) { | 66 | friends.makeFriends(function (err) { |
67 | if (err) return next(err) | 67 | if (err) return next(err) |
68 | 68 | ||
69 | res.sendStatus(204) | 69 | res.type('json').status(204).end() |
70 | }) | 70 | }) |
71 | } | 71 | } |
72 | 72 | ||
@@ -79,7 +79,7 @@ function removePods (req, res, next) { | |||
79 | if (err) logger.error('Cannot remove all remote videos of %s.', url) | 79 | if (err) logger.error('Cannot remove all remote videos of %s.', url) |
80 | else logger.info('%s pod removed.', url) | 80 | else logger.info('%s pod removed.', url) |
81 | 81 | ||
82 | res.sendStatus(204) | 82 | res.type('json').status(204).end() |
83 | }) | 83 | }) |
84 | }) | 84 | }) |
85 | } | 85 | } |
@@ -88,6 +88,6 @@ function quitFriends (req, res, next) { | |||
88 | friends.quitFriends(function (err) { | 88 | friends.quitFriends(function (err) { |
89 | if (err) return next(err) | 89 | if (err) return next(err) |
90 | 90 | ||
91 | res.sendStatus(204) | 91 | res.type('json').status(204).end() |
92 | }) | 92 | }) |
93 | } | 93 | } |