Ensure that all API calls and static resources are in their own unique paths. This makes it easier to add a load balancer on top of everything.

This commit is contained in:
Simo Kinnunen
2014-07-14 17:09:50 +09:00
parent 7da3c91289
commit 1d77d8c97d
34 changed files with 37 additions and 36 deletions

View File

@@ -164,7 +164,7 @@ module.exports = function DeviceServiceFactory($http, socket, EnhanceDeviceServi
, digest: false
})
oboe('/api/v1/devices')
oboe('/api/v1/app/devices')
.node('devices[*]', function (device) {
tracker.add(device)
})
@@ -180,7 +180,7 @@ module.exports = function DeviceServiceFactory($http, socket, EnhanceDeviceServi
, digest: true
})
oboe('/api/v1/group')
oboe('/api/v1/app/group')
.node('devices[*]', function (device) {
tracker.add(device)
})
@@ -189,7 +189,7 @@ module.exports = function DeviceServiceFactory($http, socket, EnhanceDeviceServi
}
deviceService.load = function(serial) {
return $http.get('/api/v1/devices/' + serial)
return $http.get('/api/app/v1/devices/' + serial)
.then(function (response) {
return response.data.device
})