mirror of
https://github.com/h44z/wg-portal.git
synced 2025-08-10 07:22:24 +00:00
wip: prepare peer, update frontend url
This commit is contained in:
parent
0a27c5e253
commit
9a99290d32
@ -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([])
|
||||
|
Loading…
x
Reference in New Issue
Block a user