mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-03 12:48:38 -04:00
Prefix all API endpoints with 'v1/', pluralize collections
This commit is contained in:
@ -59,7 +59,7 @@ function importOFX(account, password, startDate, endDate) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
url: "account/"+account.AccountId+"/import/ofx",
|
||||
url: "v1/accounts/"+account.AccountId+"/imports/ofx",
|
||||
data: {ofxdownload: ofxdownload.toJSON()},
|
||||
success: function(data, status, jqXHR) {
|
||||
var e = new Error();
|
||||
@ -145,12 +145,12 @@ function importFile(url, inputElement) {
|
||||
}
|
||||
|
||||
function importOFXFile(inputElement, account) {
|
||||
var url = "account/"+account.AccountId+"/import/ofxfile";
|
||||
var url = "v1/accounts/"+account.AccountId+"/imports/ofxfile";
|
||||
return importFile(url, inputElement);
|
||||
}
|
||||
|
||||
function importGnucash(inputElement) {
|
||||
var url = "import/gnucash";
|
||||
var url = "v1/imports/gnucash";
|
||||
return importFile(url, inputElement);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user