mirror of
				https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
				synced 2025-11-04 13:36:11 +00:00 
			
		
		
		
	added config values to dashboard
This commit is contained in:
		@@ -1,3 +1,14 @@
 | 
			
		||||
async function fetchConfig(element) {
 | 
			
		||||
    let xhr = new XMLHttpRequest();
 | 
			
		||||
    xhr.open("GET", '/-/config', true);
 | 
			
		||||
    xhr.onreadystatechange = function () {
 | 
			
		||||
        if (xhr.readyState === XMLHttpRequest.DONE && xhr.status === 200) {
 | 
			
		||||
            element.innerHTML = JSON.stringify(JSON.parse(xhr.response),null,2);
 | 
			
		||||
        }
 | 
			
		||||
    };
 | 
			
		||||
    xhr.send();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
async function fetchOriginsWithLeases(element) {
 | 
			
		||||
    let xhr = new XMLHttpRequest();
 | 
			
		||||
    xhr.open("GET", '/-/origins?leases=true', true);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user