mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 07:53:22 +02:00
Add API endpoints for loading devices.
This commit is contained in:
@@ -69,3 +69,11 @@ module.exports.saveDeviceIdentity = function(serial, identity) {
|
||||
, display: identity.display
|
||||
}))
|
||||
}
|
||||
|
||||
module.exports.loadDevices = function() {
|
||||
return db.run(r.table('devices'))
|
||||
}
|
||||
|
||||
module.exports.loadDevice = function(serial) {
|
||||
return db.run(r.table('devices').get(serial))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user