[mod] read caddy
This commit is contained in:
parent
948a69657a
commit
650f241647
1 changed files with 5 additions and 2 deletions
|
@ -8,8 +8,8 @@ var app = new Vue({
|
||||||
hits:0,
|
hits:0,
|
||||||
loaded: null,
|
loaded: null,
|
||||||
target: "caddy",
|
target: "caddy",
|
||||||
targets: ["srv","top","new"]
|
targets: ["srv","top","new"],
|
||||||
|
caddy: null
|
||||||
},
|
},
|
||||||
|
|
||||||
methods:{
|
methods:{
|
||||||
|
@ -19,6 +19,9 @@ var app = new Vue({
|
||||||
fetch("links.json")
|
fetch("links.json")
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => (this.links = data));
|
.then(data => (this.links = data));
|
||||||
|
fetch("http://192.168.1.5:2015/config/")
|
||||||
|
.then(response => response.json())
|
||||||
|
.then(data => (this.caddy = data));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue