agents defs from DB

This commit is contained in:
STEINNI committed 2025-10-12 19:45:18 +00:00
1 parent f62a7176d4
commit a38d2da3e4
11 files changed
+64 -1014

No files matched your search

+18
View File
@@ -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);