Skip to content

Commit

Permalink
feat(GlpiRestClient): get files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianfranco97 authored and Hector Rondon committed Jan 19, 2018
1 parent fc5cd3f commit ad4d75e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/restclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,20 @@ class GlpiRestClient {
}
})
}

getFiles () {
return new Promise( async (resolve, reject) => {
try {
resolve (
await this.getAllItems('PluginFlyvemdmFile')
)
}
catch (err) {
reject(err)
}
})
}

}

export default GlpiRestClient

0 comments on commit ad4d75e

Please sign in to comment.