{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/193","repository_url":"https://api.github.com/repos/ga-wdi-boston/game-project","labels_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/193/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/193/events","html_url":"https://github.com/ga-wdi-boston/game-project/issues/193","id":158427446,"number":193,"title":"AJAX/Javascript - update a game ","user":{"login":"RoobScoobs","id":16338632,"avatar_url":"https://avatars.githubusercontent.com/u/16338632?v=3","gravatar_id":"","url":"https://api.github.com/users/RoobScoobs","html_url":"https://github.com/RoobScoobs","followers_url":"https://api.github.com/users/RoobScoobs/followers","following_url":"https://api.github.com/users/RoobScoobs/following{/other_user}","gists_url":"https://api.github.com/users/RoobScoobs/gists{/gist_id}","starred_url":"https://api.github.com/users/RoobScoobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoobScoobs/subscriptions","organizations_url":"https://api.github.com/users/RoobScoobs/orgs","repos_url":"https://api.github.com/users/RoobScoobs/repos","events_url":"https://api.github.com/users/RoobScoobs/events{/privacy}","received_events_url":"https://api.github.com/users/RoobScoobs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-06-03T18:33:06Z","updated_at":"2016-06-04T18:21:59Z","closed_at":null,"body":"Hey guys, \r\n\r\nIn trying to update the game status in the backend, I keep getting a 404 error. \r\n\r\nI build out my ajax request as the following: \r\n\r\n```js\r\nconst updateGame = function (value) {\r\n  return $.ajax ({\r\n    url: app.host + '/games/' + app.user.id,\r\n    method: 'PATCH',\r\n    headers: {\r\n      Authorization: 'Token token=' + app.user.token,\r\n    },\r\n    data: value\r\n  });\r\n};\r\n```\r\n\r\nvalue is defined as:\r\n`let value = $(event.target).text();`\r\nThis targets the container clicked on and retrieves either X or O.\r\n\r\nupdateGame then gets called in my makeAMove Function \r\n\r\n`api.updateGame(value)`"},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/comments/223770377","html_url":"https://github.com/ga-wdi-boston/game-project/issues/193#issuecomment-223770377","issue_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/193","id":223770377,"user":{"login":"RoobScoobs","id":16338632,"avatar_url":"https://avatars.githubusercontent.com/u/16338632?v=3","gravatar_id":"","url":"https://api.github.com/users/RoobScoobs","html_url":"https://github.com/RoobScoobs","followers_url":"https://api.github.com/users/RoobScoobs/followers","following_url":"https://api.github.com/users/RoobScoobs/following{/other_user}","gists_url":"https://api.github.com/users/RoobScoobs/gists{/gist_id}","starred_url":"https://api.github.com/users/RoobScoobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoobScoobs/subscriptions","organizations_url":"https://api.github.com/users/RoobScoobs/orgs","repos_url":"https://api.github.com/users/RoobScoobs/repos","events_url":"https://api.github.com/users/RoobScoobs/events{/privacy}","received_events_url":"https://api.github.com/users/RoobScoobs/received_events","type":"User","site_admin":false},"created_at":"2016-06-04T18:21:59Z","updated_at":"2016-06-04T18:21:59Z","body":"Got the index and value updating now! Thanks guys! "}}
{"actor":{"display_login":"RoobScoobs"}}