[mod] read caddy

This commit is contained in:
Andy Bunce 2022-11-28 11:10:43 +00:00
parent 948a69657a
commit 650f241647

View file

@ -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 () {