Inline encoding of previously embedded fields

To avoid impacting the client's code with implementation details.
This commit is contained in:
Alfonso Acosta
2016-02-18 12:22:43 +00:00
parent 6ac176a492
commit ddf5fff5c2
7 changed files with 88 additions and 25 deletions

View File

@@ -169,7 +169,7 @@ export function getApiDetails() {
export function doControlRequest(nodeId, control) {
clearTimeout(controlErrorTimer);
const url = `api/control/${encodeURIComponent(control.probeId)}/`
+ `${encodeURIComponent(control.nodeId)}/${control.control.id}`;
+ `${encodeURIComponent(control.nodeId)}/${control.id}`;
reqwest({
method: 'POST',
url: url,