web app, updated emane config api to be a general config api

This commit is contained in:
Blake J. Harnden 2018-05-18 08:20:04 -07:00
parent a55cd6a524
commit c90ee5fc84
3 changed files with 28 additions and 26 deletions

View file

@ -69,8 +69,8 @@ class CoreRest {
return await $.getJSON(`/sessions/${this.currentSession}/emane/models`);
}
async getEmaneOptions(nodeId) {
return await $.getJSON(`/sessions/${this.currentSession}/emane/options`, {node: nodeId});
async getConfig(config) {
return await $.getJSON(`/sessions/${this.currentSession}/config`, config);
}
async setConfig(config) {