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

@@ -39,8 +39,8 @@ $fileOpen.click(() => {
function getFileUrl() {
// electron needs absolute URL so we extract current host, port, protocol
return utils.getHost() + "/api/files/download/" + noteDetailService.getCurrentNoteId()
+ "?protectedSessionId=" + encodeURIComponent(protectedSessionHolder.getProtectedSessionId());
return utils.getHost() + "/api/notes/" + noteDetailService.getCurrentNoteId()
+ "/download?protectedSessionId=" + encodeURIComponent(protectedSessionHolder.getProtectedSessionId());
}
export default {