Start of the web frontend and backend for config handling.

This commit is contained in:
2021-09-28 22:09:12 +09:30
parent 7500a30f6b
commit 2aba19770f
5 changed files with 141 additions and 20 deletions

View File

@@ -19,6 +19,8 @@
</p>
</div>
<a href="/config">config</a>
<table class="pure-table">
<thead>
<tr>
@@ -53,7 +55,7 @@
return {
items: [], version: {},
fetch_version() {
fetch('/version')
fetch('/rest/version')
.then(response => response.json())
.then(info => {
this.version = info;
@@ -65,7 +67,7 @@
});
},
fetch_data() {
fetch('/fetch/info')
fetch('/rest/fetch/info')
.then(response => response.json())
.then(info => {
// will be null if no downloads yet