While making a POST request to create a new user in the /tcos/:tcoid/signup route, the JSON response returned has keys that are not enclosed by "" , leading to parsing errors
Paste the following code into a browser console and see the Response of the POST request in the Network tab -
$.ajax({url:"http://tcoapi.apiary-mock.com/tcos/tco14/signup", method: "POST"})
The corresponding code is at
line 13, https://github.com/cloudspokes/tco-api/blob/master/actions/signup.js
line 24, https://github.com/cloudspokes/tco-api/blob/master/initializers/signup.js
While making a POST request to create a new user in the /tcos/:tcoid/signup route, the JSON response returned has keys that are not enclosed by "" , leading to parsing errors
Paste the following code into a browser console and see the Response of the POST request in the Network tab -
$.ajax({url:"http://tcoapi.apiary-mock.com/tcos/tco14/signup", method: "POST"})
The corresponding code is at
line 13, https://github.com/cloudspokes/tco-api/blob/master/actions/signup.js
line 24, https://github.com/cloudspokes/tco-api/blob/master/initializers/signup.js