mirror of
https://github.com/h44z/wg-portal.git
synced 2025-08-12 16:22:23 +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;
|
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([])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user