Open skwerlzu opened 5 years ago
Using http://apitester.com to test mup deployed and getting 400 Bad Request error.
Works fine when running test version on separate port, but gives error on deployed.
` Api.addRoute('qb/', {authRequired: false}, { get: function () { console.log(this.urlParams) return this.urlParams; }, post: function (data) {
var body = this.bodyParams; if(Meteor.isDevelopment){ body.eventNotifications = JSON.parse(body.eventNotifications); } var params = { urlParams: this.urlParams, queryParams: this.queryParams, bodyParams: body }; qb_handleHook(body) Meteor.call('testcollection.newtest', {data: params}, (err, res) => { if (err) { alert(err); } else { // success! //console.log('return from client id array') console.log(res) } }); return params }
});`
Using http://apitester.com to test mup deployed and getting 400 Bad Request error.
Works fine when running test version on separate port, but gives error on deployed.
` Api.addRoute('qb/', {authRequired: false}, { get: function () { console.log(this.urlParams) return this.urlParams; }, post: function (data) {
});`