primevue-mirror/service/NodeService.js

14 lines
348 B
JavaScript
Executable File

export default class NodeService {
getTreeTableNodes() {
return fetch('/demo/data/treetablenodes.json')
.then((res) => res.json())
.then((d) => d.root);
}
getTreeNodes() {
return fetch('/demo/data/treenodes.json')
.then((res) => res.json())
.then((d) => d.root);
}
}