updated to work with changes for rel/5.2

This commit is contained in:
Blake J. Harnden 2018-07-27 10:08:03 -07:00
parent b18d5b5805
commit 38ddec1ed9
3 changed files with 144 additions and 200 deletions

View file

@ -78,12 +78,20 @@ class CoreRest {
return await $.getJSON(`/sessions/${this.currentSession}/emane/models`);
}
async getConfig(config) {
return await $.getJSON(`/sessions/${this.currentSession}/config`, config);
async getEmaneConfig(config) {
return await $.getJSON(`/sessions/${this.currentSession}/emane/config`, config);
}
async setConfig(config) {
return await putJson(`/sessions/${this.currentSession}/config`, config);
async getEmaneModelConfig(config) {
return await $.getJSON(`/sessions/${this.currentSession}/emane/model/config`, config);
}
async setEmaneConfig(config) {
return await putJson(`/sessions/${this.currentSession}/emane/config`, config);
}
async setEmaneModelConfig(config) {
return await putJson(`/sessions/${this.currentSession}/emane/model/config`, config);
}
async getNode(nodeId) {