mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 05:46:10 +01:00
changes in API format
This commit is contained in:
@@ -33,7 +33,7 @@ async function showDialog() {
|
||||
async function savePrefix() {
|
||||
const prefix = $treePrefixInput.val();
|
||||
|
||||
await server.put('tree/' + branchId + '/set-prefix', { prefix: prefix });
|
||||
await server.put('branches/' + branchId + '/set-prefix', { prefix: prefix });
|
||||
|
||||
await treeService.setPrefix(branchId, prefix);
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ async function showNoteRevisionsDialog(noteId, noteRevisionId) {
|
||||
$list.empty();
|
||||
$content.empty();
|
||||
|
||||
revisionItems = await server.get('note-revisions/' + noteId);
|
||||
revisionItems = await server.get('notes/' + noteId + '/revisions');
|
||||
|
||||
for (const item of revisionItems) {
|
||||
const dateModified = utils.parseDate(item.dateModifiedFrom);
|
||||
|
||||
@@ -34,10 +34,7 @@ async function showDialog() {
|
||||
}
|
||||
|
||||
async function saveOptions(optionName, optionValue) {
|
||||
await server.post('options', {
|
||||
name: optionName,
|
||||
value: optionValue
|
||||
});
|
||||
await server.put('options/' + encodeURIComponent(optionName) + '/' + encodeURIComponent(optionValue));
|
||||
|
||||
infoService.showMessage("Options change have been saved.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user