agents defs from DB
This commit is contained in:
1 parent
f62a7176d4
commit
a38d2da3e4
11 files changed
+64
-1014
No files matched your search
@@ -0,0 +1,18 @@
|
||||
class AgentsModel extends EICModel {
|
||||
|
||||
constructor() {
|
||||
super()
|
||||
this.ressource = '/agents'
|
||||
}
|
||||
|
||||
async getSprites(group) {
|
||||
let endpoint = app.config.api[this.ressource].getSprites
|
||||
endpoint.uri = endpoint.uri.replace('{group}', group)
|
||||
return (
|
||||
this.request(endpoint.uri, endpoint.method)
|
||||
.then( async serverData => serverData.payload.agentSprites)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
app.registerClass('AgentsModel', AgentsModel);
|
||||
Reference in new issue
Block a user