diff --git a/cmd/http/public/transactions.html b/cmd/http/public/transactions.html index a7dd193..ce8126a 100644 --- a/cmd/http/public/transactions.html +++ b/cmd/http/public/transactions.html @@ -187,6 +187,15 @@ })) } + function create() { + http("POST", "/api/create", (body, status) => { + if (status != 200) + throw(`Unexpected status ${status}: ${body}`) + loadTransactions([]) + load() + }, JSON.stringify({})) + } + function stage(who, contributesToHouse) { var d = new Date() const zeroPad = (num, places) => String(num).padStart(places, '0') @@ -241,6 +250,11 @@
Register +
+ +