mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
move devices endpoint from app unit to api unit
This commit is contained in:
@@ -165,7 +165,7 @@ module.exports = function DeviceServiceFactory($http, socket, EnhanceDeviceServi
|
||||
, digest: false
|
||||
})
|
||||
|
||||
oboe('/app/api/v1/devices')
|
||||
oboe('/api/v1/devices')
|
||||
.node('devices[*]', function(device) {
|
||||
tracker.add(device)
|
||||
})
|
||||
@@ -190,7 +190,7 @@ module.exports = function DeviceServiceFactory($http, socket, EnhanceDeviceServi
|
||||
}
|
||||
|
||||
deviceService.load = function(serial) {
|
||||
return $http.get('/app/api/v1/devices/' + serial)
|
||||
return $http.get('/api/v1/devices/' + serial)
|
||||
.then(function(response) {
|
||||
return response.data.device
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user