From 9c3d7745a7f96fd69d929b66550dcd1c81fbe489 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Thu, 5 May 2022 01:41:01 +1000
Subject: Make server bulk-query for child nodes

Also remove /data/children queries, and query-depth functionality.
---
 src/App.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 62326e7..66ed577 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -189,7 +189,7 @@ export default defineComponent({
 			// Check if data for node-to-expand exists, getting from server if needed
 			let tolNode = this.tolMap.get(layoutNode.name)!;
 			if (!this.tolMap.has(tolNode.children[0])){
-				return fetch('/data/children?name=' + encodeURIComponent(layoutNode.name))
+				return fetch('/data/node?name=' + encodeURIComponent(layoutNode.name))
 					.then(response => response.json())
 					.then(obj => {
 						Object.getOwnPropertyNames(obj).forEach(key => {this.tolMap.set(key, obj[key])});
-- 
cgit v1.2.3

