continuing in API review

This commit is contained in:
azivner
2018-04-01 20:50:58 -04:00
parent a066c6fe2b
commit c765dbc5cf
9 changed files with 24 additions and 29 deletions

View File

@@ -11,7 +11,7 @@ $("#file-upload").change(async function() {
formData.append('upload', this.files[0]);
const resp = await $.ajax({
url: baseApiUrl + 'files/upload/' + noteDetailService.getCurrentNoteId(),
url: baseApiUrl + 'notes/' + noteDetailService.getCurrentNoteId() + '/upload',
headers: server.getHeaders(),
data: formData,
type: 'POST',