From 55e281a57c2ac9acb18836ea7a48f5a553d924e2 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Tue, 26 Apr 2022 23:46:51 +1000
Subject: Change data URL path format

---
 src/App.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 24ae12b..89d227d 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('/tolnode/' + layoutNode.name + '?type=children')
+				return fetch('/data/children?name=' + encodeURIComponent(layoutNode.name))
 					.then(response => response.json())
 					.then(obj => {
 						Object.getOwnPropertyNames(obj).forEach(key => {this.tolMap.set(key, obj[key])});
@@ -492,7 +492,7 @@ export default defineComponent({
 		tryLayout(this.activeRoot, this.tileAreaPos, this.tileAreaDims, this.lytOpts,
 			{allowCollapse: true, layoutMap: this.layoutMap});
 		// Get initial tol node data
-		fetch('/tolnode/' + rootName)
+		fetch('/data/node?name=' + encodeURIComponent(rootName))
 			.then(response => response.json())
 			.then(obj => {
 				Object.getOwnPropertyNames(obj).forEach(key => {this.tolMap.set(key, obj[key])});
-- 
cgit v1.2.3

