refactoring of routes - noteId needs to go to /notes noteTreeId to /tree

This commit is contained in:
azivner
2018-01-13 20:53:00 -05:00
parent 16eb156033
commit 9860c8deef
4 changed files with 44 additions and 38 deletions

View File

@@ -142,7 +142,7 @@ const protected_session = (function() {
async function protectSubTree(noteId, protect) {
await ensureProtectedSession(true, true);
await server.put('tree/' + noteId + "/protect-sub-tree/" + (protect ? 1 : 0));
await server.put('notes/' + noteId + "/protect-sub-tree/" + (protect ? 1 : 0));
showMessage("Request to un/protect sub tree has finished successfully");