wip: prepare peer, update frontend url

This commit is contained in:
Christoph Haas 2023-06-21 23:23:46 +02:00
parent 0a27c5e253
commit 9a99290d32

View File

@ -79,7 +79,7 @@ export const peerStore = defineStore({
this.prepared = peer;
},
async PreparePeer(interfaceId) {
return apiWrapper.get(`${baseUrl}/prepare/${interfaceId}`)
return apiWrapper.get(`${baseUrl}/iface/${iface.Identifier}/prepare`)
.then(this.setPreparedPeer)
.catch(error => {
this.prepared = {}
@ -97,7 +97,7 @@ export const peerStore = defineStore({
}
this.fetching = true
return apiWrapper.get(`${baseUrl}/all/` + iface.Identifier)
return apiWrapper.get(`${baseUrl}/iface/${iface.Identifier}/all`)
.then(this.setPeers)
.catch(error => {
this.setPeers([])