aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/v1/videos.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-03-14 13:50:19 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-03-14 13:50:19 +0100
commitdc8bc31be517a53e8fbe7100cfe45cd73f596de0 (patch)
treec0b0d6641dd352dafff93b8fd33ddb262b59aa47 /server/controllers/api/v1/videos.js
parentbd324a669218f9ed302f7f54b36ee535d25c9733 (diff)
downloadPeerTube-dc8bc31be517a53e8fbe7100cfe45cd73f596de0.tar.gz
PeerTube-dc8bc31be517a53e8fbe7100cfe45cd73f596de0.tar.zst
PeerTube-dc8bc31be517a53e8fbe7100cfe45cd73f596de0.zip
Angular application :first draft
Diffstat (limited to 'server/controllers/api/v1/videos.js')
-rw-r--r--server/controllers/api/v1/videos.js6
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 })