move devices endpoint from app unit to api unit

This commit is contained in:
Vishal Banthia
2015-12-02 22:56:35 +09:00
parent 0e8b308b6c
commit d6f37681ce
5 changed files with 115 additions and 50 deletions

View File

@@ -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
})