Fixed endpoint
parent
5b28ae88d5
commit
408736b75b
|
@ -20,7 +20,7 @@ function PeerList() {
|
||||||
// Initial loading
|
// Initial loading
|
||||||
self.getUser = async () => {
|
self.getUser = async () => {
|
||||||
let res; try {
|
let res; try {
|
||||||
res = await fetch(`${API_URL}/`)
|
res = await fetch(`${API_URL}/peer/`)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err) console.error(err)
|
if (err) console.error(err)
|
||||||
alert('Failed to contact API and load peers list. Check your wireguard connection. ')
|
alert('Failed to contact API and load peers list. Check your wireguard connection. ')
|
||||||
|
|
Loading…
Reference in New Issue