cors settings, endpoint adjustments so mobile can hit

This commit is contained in:
metacryst
2026-01-29 08:21:15 -06:00
parent d3df5bb6cb
commit 083b110c2d
3 changed files with 28 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ let Global = class {
async fetchAppData() {
let personalSpace = this.currentNetwork === this.profile
let appData = await fetch(`/app/${personalSpace ? "my" : "org"}data/` + this.currentNetwork.id, {method: "GET"})
let appData = await fetch(`/api/${personalSpace ? "my" : "org"}data/` + this.currentNetwork.id, {method: "GET"})
let json = await appData.json()
return json
}

View File

@@ -21,7 +21,7 @@ async function openNetworkAndApp() {
}
if(!global.currentNetwork.data) {
let appData = await fetch("/app/orgdata/" + global.profile.networks[0].id, {method: "GET"})
let appData = await fetch("/api/orgdata/" + global.profile.networks[0].id, {method: "GET"})
let json = await appData.json()
global.currentNetwork.data = json
}