mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
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:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user