diff --git a/template/public/index.html b/template/public/index.html
index 6863af7..d9646a0 100644
--- a/template/public/index.html
+++ b/template/public/index.html
@@ -127,6 +127,13 @@
Broke
+
@@ -486,6 +493,8 @@ Broke
const maxLength = item.params[key].max || undefined;
const minLength = item.params[key].min || undefined;
const pattern = item.params[key].pattern || undefined;
+ const values = item.params[key].values || undefined;
+
let type = "text";
let value = item.params[key].default || undefined;
if (dataType.includes("number")) {type = "number"; };
@@ -501,15 +510,19 @@ Broke
if (dataType === "enum") type = "select";
if (dataType === "enum-multi") type = "select-multi";
- r.push({ name: key,
- label: key,optional,
- hidden,required,
- [type==='number'?'min':'minLength'] :minLength,
- [type==='number'?'max':'maxLength'] :maxLength,
- pattern,
- paramType: method==='GET' ? 'param' : 'body',
- value,
- type,dataType, value:undefined });
+ r.push({
+ name: key,
+ label: key, optional,
+ hidden, required,
+ [type === 'number' ? 'min' : 'minLength']: minLength,
+ [type === 'number' ? 'max' : 'maxLength']: maxLength,
+ pattern,
+ paramType: method === 'GET' ? 'param' : 'body',
+ value,
+ type,
+ dataType,
+ values
+ });
}
return r;
},