Skip to content

Commit 7f538c6

Browse files
committed
restore web functionality
1 parent 07fb100 commit 7f538c6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

solid_node/viewers/web/app/src/node.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export abstract class Node {
123123
return;
124124
const tstamp = new Date().getTime(); // avoid cache
125125

126-
stlLoader.load(`/root${this.path}${this.model}?t=${tstamp}`, (geometry) => {
126+
stlLoader.load(`/node${this.path}${this.model}?t=${tstamp}`, (geometry) => {
127127
const material = new THREE.MeshNormalMaterial();
128128
const mesh = new THREE.Mesh(geometry, material);
129129
if (this.context.scene) {
@@ -239,7 +239,7 @@ export const loadRoot = async (context: Context): Promise<Node> => {
239239

240240
const loadNodeData = async (path: string): Promise<NodeData> => {
241241
const tstamp = new Date().getTime(); // avoid cache
242-
const response = await fetch(`/root${path}?t=${tstamp}`);
242+
const response = await fetch(`/node${path}?t=${tstamp}`);
243243
return await response.json() as NodeData;
244244
}
245245

solid_node/viewers/web/viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(self, path, dev=True):
6060
f'/{self.node.name}',
6161
)
6262

63-
root_fs = FilesystemAPI(root_node.basedir)
63+
root_fs = FilesystemAPI(self.node.basedir)
6464

6565
self.app.mount(f'/node', root_node.app)
6666
self.app.mount(f'/file', root_fs.app)

0 commit comments

Comments
 (0)