From 9a99290d3287fe9f5712ca6aa29e4051f9e76258 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Wed, 21 Jun 2023 23:23:46 +0200 Subject: [PATCH] wip: prepare peer, update frontend url --- frontend/src/stores/peers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/stores/peers.js b/frontend/src/stores/peers.js index 0785583..01de482 100644 --- a/frontend/src/stores/peers.js +++ b/frontend/src/stores/peers.js @@ -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([])