]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/v1/videos.js
Angular 2 : draft 2
[github/Chocobozzz/PeerTube.git] / server / controllers / api / v1 / videos.js
index 9398aabb75fe1b6139054bf76befd1b14e574ae1..76cad62d110435be44927f1e8b3659fe195f7caf 100644 (file)
@@ -76,8 +76,8 @@ function addVideo (req, res, next) {
       // Now we'll add the video's meta data to our friends
       friends.addVideoToFriends(video_data)
 
-      // TODO : include Location of the new video
-      res.type('json').status(201).end()
+      // TODO : include Location of the new video -> 201
+      res.type('json').status(204).end()
     })
   })
 }