all APIs are not prefixed with /api

This commit is contained in:
azivner
2017-09-30 10:05:12 -04:00
parent ff58456332
commit e28c06ef37
17 changed files with 41 additions and 44 deletions

View File

@@ -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",