mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2026-01-03 07:08:53 +03:00
Cleanup REST API (#1255)
* Replaced URIs: - value.html => value - statusflow.html => statusflow - cputemp.html => cputemp - rssi.html => rssi - statusflow.html => statusflow Removed URLs: - wasserzaehler.html * keep legacy API * . * . * . * . * . * . * updated links
This commit is contained in:
@@ -84,7 +84,7 @@ function setprevalue() {
|
||||
inputVal = inputVal.replace(",", ".");
|
||||
var xhttp = new XMLHttpRequest();
|
||||
try {
|
||||
url = basepath + "/setPreValue.html?value=" + inputVal + "&numbers=" + _number;
|
||||
url = basepath + "/setPreValue?value=" + inputVal + "&numbers=" + _number;
|
||||
xhttp.open("GET", url, false);
|
||||
xhttp.send();
|
||||
response = xhttp.responseText;
|
||||
@@ -102,7 +102,7 @@ function loadPrevalue(_basepath) {
|
||||
|
||||
var xhttp = new XMLHttpRequest();
|
||||
try {
|
||||
url = _basepath + '/setPreValue.html?numbers=' + _number;
|
||||
url = _basepath + '/setPreValue?numbers=' + _number;
|
||||
xhttp.open("GET", url, false);
|
||||
xhttp.send();
|
||||
response = xhttp.responseText;
|
||||
|
||||
Reference in New Issue
Block a user