{"action":"closed","issue":{"url":"https://api.github.com/repos/jsfy/trakr/issues/16","labels_url":"https://api.github.com/repos/jsfy/trakr/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/jsfy/trakr/issues/16/comments","events_url":"https://api.github.com/repos/jsfy/trakr/issues/16/events","html_url":"https://github.com/jsfy/trakr/issues/16","id":54613829,"number":16,"title":"Fix Users Controller responses","user":{"login":"joaostein","id":223414,"avatar_url":"https://avatars.githubusercontent.com/u/223414?v=3","gravatar_id":"","url":"https://api.github.com/users/joaostein","html_url":"https://github.com/joaostein","followers_url":"https://api.github.com/users/joaostein/followers","following_url":"https://api.github.com/users/joaostein/following{/other_user}","gists_url":"https://api.github.com/users/joaostein/gists{/gist_id}","starred_url":"https://api.github.com/users/joaostein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaostein/subscriptions","organizations_url":"https://api.github.com/users/joaostein/orgs","repos_url":"https://api.github.com/users/joaostein/repos","events_url":"https://api.github.com/users/joaostein/events{/privacy}","received_events_url":"https://api.github.com/users/joaostein/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jsfy/trakr/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-16T19:20:46Z","updated_at":"2015-01-20T05:17:59Z","closed_at":"2015-01-20T05:17:59Z","body":"* Consider using `res.json()` instead of `res.send()` on `.create()` https://github.com/jsfy/trakr/blob/master/app/controllers/usersController.js#L21\r\n\r\n* Remove unnecessary `.toJSON()` on `.update()` (`res.json()` internally does this*) https://github.com/jsfy/trakr/blob/master/app/controllers/usersController.js#L50\r\n\r\n* Remove unnecessary `.toJSON()` on `.destroy()` (`res.json()` internally does this*) https://github.com/jsfy/trakr/blob/master/app/controllers/usersController.js#L62\r\n\r\n* The source of `res.json()` could be found here for reference: https://github.com/strongloop/express/blob/master/lib%2Fresponse.js#L208-L236\r\n\r\n\r\n"}}