rename route for nodes and adjust calls to route
This commit is contained in:
parent
adc72961d0
commit
f5a8b8447f
4 changed files with 6 additions and 5 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue