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:
@ -137,6 +137,7 @@ function create(transaction) {
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
contentType: "application/json",
|
||||
dataType: "json",
|
||||
url: "v1/transactions/",
|
||||
data: transaction.toJSON(),
|
||||
@ -164,6 +165,7 @@ function update(transaction) {
|
||||
|
||||
$.ajax({
|
||||
type: "PUT",
|
||||
contentType: "application/json",
|
||||
dataType: "json",
|
||||
url: "v1/transactions/"+transaction.TransactionId+"/",
|
||||
data: transaction.toJSON(),
|
||||
|
Reference in New Issue
Block a user