mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 21:05:55 +01:00
all APIs are not prefixed with /api
This commit is contained in:
@@ -338,7 +338,7 @@ function updateSubTreeRecursively(noteId, updateCallback, successCallback) {
|
||||
|
||||
function updateNoteSynchronously(noteId, updateCallback, successCallback) {
|
||||
$.ajax({
|
||||
url: baseUrl + 'notes/' + noteId,
|
||||
url: baseApiUrl + 'notes/' + noteId,
|
||||
type: 'GET',
|
||||
async: false,
|
||||
success: function (note) {
|
||||
@@ -353,7 +353,7 @@ function updateNoteSynchronously(noteId, updateCallback, successCallback) {
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: baseUrl + 'notes/' + noteId,
|
||||
url: baseApiUrl + 'notes/' + noteId,
|
||||
type: 'PUT',
|
||||
data: JSON.stringify(note),
|
||||
contentType: "application/json",
|
||||
|
||||
Reference in New Issue
Block a user