rename route for nodes and adjust calls to route

This commit is contained in:
Yisroel Baum 2026-04-18 20:57:40 +03:00
parent adc72961d0
commit f5a8b8447f
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
4 changed files with 6 additions and 5 deletions

View file

@ -8,7 +8,7 @@ document.addEventListener('DOMContentLoaded', () => {
h1.textContent = text.name;
document.getElementById('text-detail').appendChild(h1);
return fetch('/api/texts/' + textId + '/nodes');
return fetch('/api/nodes/' + textId );
})
.then(res => res.json())
.then(nodes => {