added basic api for 3rd-party clients

This commit is contained in:
benson
2022-12-23 17:25:06 +08:00
parent a0eb5260cf
commit 44810e5df2
9 changed files with 90 additions and 20 deletions

View File

@@ -29,6 +29,8 @@ const buttonHandler = (event, type) => {
console.log("gid is not set!");
}
}
data['url'] = data["text-input-value"]
delete data["text-input-value"]
helper.httpClient(url).setErrorHandler(function (xhr, textStatus, error) {
console.log(error);
}).setHandler(function (data) {