[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,
 | 
			
		||||
        loaded: null,
 | 
			
		||||
        target: "caddy",
 | 
			
		||||
        targets: ["srv","top","new"]
 | 
			
		||||
        		
 | 
			
		||||
        targets: ["srv","top","new"],
 | 
			
		||||
        caddy: null		
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
  methods:{
 | 
			
		||||
| 
						 | 
				
			
			@ -19,6 +19,9 @@ var app = new Vue({
 | 
			
		|||
			  fetch("links.json")
 | 
			
		||||
		        .then(response => response.json())
 | 
			
		||||
		        .then(data => (this.links = data));
 | 
			
		||||
              fetch("http://192.168.1.5:2015/config/")
 | 
			
		||||
                .then(response => response.json())
 | 
			
		||||
		        .then(data => (this.caddy = data));
 | 
			
		||||
           }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue