]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - routes/index.js
Create a constants module to easily modify some constants in a test
[github/Chocobozzz/PeerTube.git] / routes / index.js
index ecca8072164ddd6abf10783894bbce60d1971dac..f45aa7ba57f2bd7b453009818ea7ea30084e2f60 100644 (file)
@@ -1,8 +1,10 @@
 ;(function () {
   'use strict'
 
+  var constants = require('../src/constants')
+
   var routes = {
-    api: require('./api/' + global.API_VERSION),
+    api: require('./api/' + constants.API_VERSION),
     views: require('./views')
   }