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