mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-27 09:12:29 +00:00
16 lines
286 B
CoffeeScript
16 lines
286 B
CoffeeScript
canvas = require('./_canvas')
|
|
|
|
exports.getAll = (applicationId) ->
|
|
return canvas.get
|
|
resource: 'device'
|
|
options:
|
|
filter:
|
|
application: applicationId
|
|
expand: 'application'
|
|
orderby: 'name asc'
|
|
|
|
exports.remove = (id) ->
|
|
return canvas.delete
|
|
resource: 'device'
|
|
id: id
|