]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - src/videos.js
Middleware refractoring
[github/Chocobozzz/PeerTube.git] / src / videos.js
index 48ec19d4d5df05864abfe850104713f410f31777..f787ae49cddacfec8ba153244d6ea84170806720 100644 (file)
@@ -73,7 +73,7 @@
         logger.debug('Sending this video Uri to friends...')
 
         var data = {
-          path: '/api/remotevideos/add',
+          path: '/api/' + global.API_VERSION + '/remotevideos/add',
           method: 'POST',
           data: params
         }
             }
 
             var data = {
-              path: '/api/remotevideos/remove',
+              path: '/api/' + global.API_VERSION + '/remotevideos/remove',
               method: 'POST',
               data: {
                 magnetUri: video.magnetUri