diff options
Diffstat (limited to 'server/controllers/api/v1/videos.js')
-rw-r--r-- | server/controllers/api/v1/videos.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/v1/videos.js b/server/controllers/api/v1/videos.js index 620711925..9398aabb7 100644 --- a/server/controllers/api/v1/videos.js +++ b/server/controllers/api/v1/videos.js | |||
@@ -77,7 +77,7 @@ function addVideo (req, res, next) { | |||
77 | friends.addVideoToFriends(video_data) | 77 | friends.addVideoToFriends(video_data) |
78 | 78 | ||
79 | // TODO : include Location of the new video | 79 | // TODO : include Location of the new video |
80 | res.sendStatus(201) | 80 | res.type('json').status(201).end() |
81 | }) | 81 | }) |
82 | }) | 82 | }) |
83 | } | 83 | } |
@@ -87,7 +87,7 @@ function getVideos (req, res, next) { | |||
87 | if (err) return next(err) | 87 | if (err) return next(err) |
88 | 88 | ||
89 | if (video === null) { | 89 | if (video === null) { |
90 | return res.sendStatus(404) | 90 | res.type('json').status(204).end() |
91 | } | 91 | } |
92 | 92 | ||
93 | res.json(video) | 93 | res.json(video) |
@@ -117,7 +117,7 @@ function removeVideo (req, res, next) { | |||
117 | } | 117 | } |
118 | 118 | ||
119 | friends.removeVideoToFriends(params) | 119 | friends.removeVideoToFriends(params) |
120 | res.sendStatus(204) | 120 | res.type('json').status(204).end() |
121 | }) | 121 | }) |
122 | }) | 122 | }) |
123 | }) | 123 | }) |