cors settings, endpoint adjustments so mobile can hit
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user