mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-03 12:48:38 -04:00
client: Set contentType header
This commit is contained in:
@ -99,6 +99,7 @@ function create(account) {
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
contentType: "application/json",
|
||||
dataType: "json",
|
||||
url: "v1/accounts/",
|
||||
data: account.toJSON(),
|
||||
@ -126,6 +127,7 @@ function update(account) {
|
||||
|
||||
$.ajax({
|
||||
type: "PUT",
|
||||
contentType: "application/json",
|
||||
dataType: "json",
|
||||
url: "v1/accounts/"+account.AccountId+"/",
|
||||
data: account.toJSON(),
|
||||
|
Reference in New Issue
Block a user