bugfix permissions

This commit is contained in:
2026-04-28 15:35:20 +02:00
parent 061188a3c0
commit c98089e359
14 changed files with 47 additions and 125 deletions

View File

@@ -15,7 +15,7 @@
<script>
fetch('/api/getConfig', { method: 'POST' })
fetch('/api/config/get', { method: 'POST' })
.then(res => res.json())
.then(json => {
const tree = createJsonTree({
@@ -24,7 +24,7 @@
expandInitially: true,
onSave: json => {
console.log(JSON.stringify(tree.getChanges()));
fetch('/config', {
fetch('/api/config/save', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(tree.getChanges(), null, 2)

View File

@@ -46,7 +46,7 @@
});
};
fetch('/api/getServerInfo', { method: 'POST' })
fetch('/api/serverInfo/get', { method: 'POST' })
.then(res => res.json())
.then(json => {

View File

@@ -10,7 +10,7 @@
</div>
<script>
fetch('/api/getStyles', { method: 'POST' })
fetch('/api/styles/get', { method: 'POST' })
.then(res => res.json())
.then(json => {
const tree = createJsonTree({
@@ -18,7 +18,7 @@
data: json,
expandInitially: true,
onSave: json => {
fetch('/style', {
fetch('/api/styles/save', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(tree.getChanges(), null, 2)