extended config and server accordingly
This commit is contained in:
parent
047dc92b80
commit
91f6c0a57a
2 changed files with 8 additions and 0 deletions
|
@ -22,6 +22,11 @@
|
||||||
"default": "random",
|
"default": "random",
|
||||||
"description": "specifies the color to change to"
|
"description": "specifies the color to change to"
|
||||||
},
|
},
|
||||||
|
"index": {
|
||||||
|
"available": "number values",
|
||||||
|
"default": "undefined",
|
||||||
|
"description": "specifies the led index"
|
||||||
|
},
|
||||||
"duration": {
|
"duration": {
|
||||||
"available": "number values",
|
"available": "number values",
|
||||||
"default": 1000,
|
"default": 1000,
|
||||||
|
|
|
@ -44,13 +44,16 @@ function getHTML() {
|
||||||
"<th>argument</th>" +
|
"<th>argument</th>" +
|
||||||
"<th>available values</th>" +
|
"<th>available values</th>" +
|
||||||
"<th>default</th>" +
|
"<th>default</th>" +
|
||||||
|
"<th>restrictions</th>" +
|
||||||
"<th>description</th>";
|
"<th>description</th>";
|
||||||
Object.keys(config.api.post).forEach(function (argument) {
|
Object.keys(config.api.post).forEach(function (argument) {
|
||||||
|
let restrictions = config.api.post[argument].restrictions || "";
|
||||||
welcomeMessage +=
|
welcomeMessage +=
|
||||||
"<tr>" +
|
"<tr>" +
|
||||||
"<td>" + argument + "</td>" +
|
"<td>" + argument + "</td>" +
|
||||||
"<td>" + config.api.post[argument].available + "</td>" +
|
"<td>" + config.api.post[argument].available + "</td>" +
|
||||||
"<td>" + config.api.post[argument].default + "</td>" +
|
"<td>" + config.api.post[argument].default + "</td>" +
|
||||||
|
"<td>" + restrictions + "</td>" +
|
||||||
"<td>" + config.api.post[argument].description + "</td>" +
|
"<td>" + config.api.post[argument].description + "</td>" +
|
||||||
"</tr>";
|
"</tr>";
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue