Open shaohaojun opened 8 years ago
var Api = new Restivus({ apiPath: 'family/third/', useDefaultAuth: true, defaultHeaders: { 'Content-Type': 'application/json' }, prettyJson: true });
Api.addRoute('syncUser', {authRequired: false,headers: { 'Content-Type': 'application/xml', 'X-Custom-Header': 'custom value' }}, { post: function () { console.log(this.bodyParams); return ""; }
but this But it prints out "{}". So I want to ask how to solve.Thanks
Maybe this issue can help you #61
I wrote the code:
var Api = new Restivus({ apiPath: 'family/third/', useDefaultAuth: true, defaultHeaders: { 'Content-Type': 'application/json' }, prettyJson: true });
Api.addRoute('syncUser', {authRequired: false,headers: { 'Content-Type': 'application/xml', 'X-Custom-Header': 'custom value' }}, { post: function () { console.log(this.bodyParams); return ""; }
})
but this But it prints out "{}". So I want to ask how to solve.Thanks