diff --git a/src/restclient.js b/src/restclient.js index 9092532..087ff78 100644 --- a/src/restclient.js +++ b/src/restclient.js @@ -463,6 +463,19 @@ class GlpiRestClient { } }) } + + getDevices () { + return new Promise( async (resolve, reject) => { + try { + resolve ( + await this.getAllItems('PluginFlyvemdmAgent') + ) + } + catch (err) { + reject(err) + } + }) + } } export default GlpiRestClient