]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - src/pods.js
Add API versionning
[github/Chocobozzz/PeerTube.git] / src / pods.js
index 30d465ee5fbc8ae7451d14f113ddabf75c8cce21..db159a46610372b5d34f1d5266691186aa3ebfac 100644 (file)
@@ -18,7 +18,7 @@
   // ----------- Private functions -----------
 
   function getForeignPodsList (url, callback) {
-    var path = '/api/pods'
+    var path = '/api/' + global.API_VERSION + '/pods'
 
     request.get(url + path, function (err, response, body) {
       if (err) throw err
         logger.debug('Make requests...')
 
         utils.makeMultipleRetryRequest(
-          { method: 'POST', path: '/api/pods/', data: data },
+          { method: 'POST', path: '/api/' + global.API_VERSION + '/pods/', data: data },
 
           pods_list,