1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-02 20:28:38 -04:00

client: Set contentType header

This commit is contained in:
2017-11-13 20:49:26 -05:00
parent 5a6be5a07b
commit 81610adb72
6 changed files with 12 additions and 0 deletions

View File

@ -99,6 +99,7 @@ function create(security) {
$.ajax({
type: "POST",
contentType: "application/json",
dataType: "json",
url: "v1/securities/",
data: security.toJSON(),
@ -126,6 +127,7 @@ function update(security) {
$.ajax({
type: "PUT",
contentType: "application/json",
dataType: "json",
url: "v1/securities/"+security.SecurityId+"/",
data: security.toJSON(),