From d4431d3d200a77f7abfa00e5adc848c633597352 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Tue, 28 Jun 2022 02:10:17 +1000
Subject: Convert server code to CGI script

Also adjust server-client API, for clarity/consistency
---
 src/components/TileInfoModal.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/components/TileInfoModal.vue')

diff --git a/src/components/TileInfoModal.vue b/src/components/TileInfoModal.vue
index 4e65f9d..a85fa72 100644
--- a/src/components/TileInfoModal.vue
+++ b/src/components/TileInfoModal.vue
@@ -157,9 +157,9 @@ export default defineComponent({
 	},
 	async created(){
 		// Query server for tol-node info
-		let urlParams = 'name=' + encodeURIComponent(this.nodeName);
-		urlParams += this.uiOpts.useReducedTree ? '&tree=reduced' : '';
-		let responseObj: InfoResponse = await getServerResponse('/data/info', urlParams);
+		let urlParams = 'type=info&name=' + encodeURIComponent(this.nodeName);
+		urlParams += this.uiOpts.useReducedTree ? '&rtree=true' : '';
+		let responseObj: InfoResponse = await getServerResponse(urlParams);
 		if (responseObj == null){
 			return;
 		}
-- 
cgit v1.2.3

