bugfix permissions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user