This commit is contained in:
abdulmohsen
2024-05-04 11:00:14 +03:00
parent 041a325e3e
commit af41ac6171
3 changed files with 3 additions and 3 deletions

View File

@@ -120,7 +120,7 @@ const loadContent = async () => {
let json = await content.json() let json = await content.json()
supported.value = json.supported supported.value = json.supported
content = await request(`/backends/${id}`) content = await request(`/backend/${id}`)
json = await content.json() json = await content.json()
backend.value = json.backend backend.value = json.backend
} }

View File

@@ -34,7 +34,7 @@ const backend = useRoute().params.backend
const info = ref({}) const info = ref({})
const loadContent = async () => { const loadContent = async () => {
const response = await request(`/backends/${backend}/info`) const response = await request(`/backend/${backend}/info`)
const json = await response.json() const json = await response.json()
info.value = json.data info.value = json.data
} }

View File

@@ -89,7 +89,7 @@ const loadContent = async () => {
onMounted(() => loadContent()) onMounted(() => loadContent())
const updateValue = async (backend, key, newValue) => { const updateValue = async (backend, key, newValue) => {
const response = await request(`/backends/${backend.name}`, { const response = await request(`/backend/${backend.name}`, {
method: 'PATCH', method: 'PATCH',
body: JSON.stringify([{ body: JSON.stringify([{
"key": key, "key": key,