mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-03 20:58:39 -04:00
client: Set contentType header
This commit is contained in:
@ -128,6 +128,7 @@ function create(report) {
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
contentType: "application/json",
|
||||
dataType: "json",
|
||||
url: "v1/reports/",
|
||||
data: report.toJSON(),
|
||||
@ -155,6 +156,7 @@ function update(report) {
|
||||
|
||||
$.ajax({
|
||||
type: "PUT",
|
||||
contentType: "application/json",
|
||||
dataType: "json",
|
||||
url: "v1/reports/"+report.ReportId+"/",
|
||||
data: report.toJSON(),
|
||||
|
Reference in New Issue
Block a user