{"action":"created","comment":{"url":"https://api.github.com/repos/schonherz-ui-2016/webshop/pulls/comments/92949988","pull_request_review_id":13471663,"id":92949988,"diff_hunk":"@@ -1,15 +1,15 @@\n (function () {\n     var token = \"\";\n     angular.module('webshopModule')\n-        .controller('loginCtrl', function ($http, $scope, $location) {\n-            $scope.login = function (email, password) {\n-                return $http.post('http://localhost:1337/user/login', {\n-                    \"email\": email,\n-                    \"password\": password\n-                }).then(function (result) {\n-                    token = result.data.token;\n-                    $location.path(\"/\");\n-                });\n+        .controller('loginCtrl', function ($http, $scope, $location, api) {","path":"app/src/loginController.js","position":13,"original_position":13,"commit_id":"da29eb5d90f2f9b347e6a15accb6ab6d99f9734e","original_commit_id":"da29eb5d90f2f9b347e6a15accb6ab6d99f9734e","user":{"login":"zsoltgyongyosi","id":1392354,"avatar_url":"https://avatars.githubusercontent.com/u/1392354?v=3","gravatar_id":"","url":"https://api.github.com/users/zsoltgyongyosi","html_url":"https://github.com/zsoltgyongyosi","followers_url":"https://api.github.com/users/zsoltgyongyosi/followers","following_url":"https://api.github.com/users/zsoltgyongyosi/following{/other_user}","gists_url":"https://api.github.com/users/zsoltgyongyosi/gists{/gist_id}","starred_url":"https://api.github.com/users/zsoltgyongyosi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsoltgyongyosi/subscriptions","organizations_url":"https://api.github.com/users/zsoltgyongyosi/orgs","repos_url":"https://api.github.com/users/zsoltgyongyosi/repos","events_url":"https://api.github.com/users/zsoltgyongyosi/events{/privacy}","received_events_url":"https://api.github.com/users/zsoltgyongyosi/received_events","type":"User","site_admin":false},"body":"You don't need the `$http` service anymore.","created_at":"2016-12-18T20:34:55Z","updated_at":"2016-12-18T20:35:11Z","html_url":"https://github.com/schonherz-ui-2016/webshop/pull/42#discussion_r92949988","pull_request_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/schonherz-ui-2016/webshop/pulls/comments/92949988"},"html":{"href":"https://github.com/schonherz-ui-2016/webshop/pull/42#discussion_r92949988"},"pull_request":{"href":"https://api.github.com/repos/schonherz-ui-2016/webshop/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/schonherz-ui-2016/webshop/pulls/42","id":98486168,"html_url":"https://github.com/schonherz-ui-2016/webshop/pull/42","diff_url":"https://github.com/schonherz-ui-2016/webshop/pull/42.diff","patch_url":"https://github.com/schonherz-ui-2016/webshop/pull/42.patch","issue_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/issues/42","number":42,"state":"open","locked":false,"title":"Expanding Api #36","user":{"login":"szimeonovn","id":11316022,"avatar_url":"https://avatars.githubusercontent.com/u/11316022?v=3","gravatar_id":"","url":"https://api.github.com/users/szimeonovn","html_url":"https://github.com/szimeonovn","followers_url":"https://api.github.com/users/szimeonovn/followers","following_url":"https://api.github.com/users/szimeonovn/following{/other_user}","gists_url":"https://api.github.com/users/szimeonovn/gists{/gist_id}","starred_url":"https://api.github.com/users/szimeonovn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szimeonovn/subscriptions","organizations_url":"https://api.github.com/users/szimeonovn/orgs","repos_url":"https://api.github.com/users/szimeonovn/repos","events_url":"https://api.github.com/users/szimeonovn/events{/privacy}","received_events_url":"https://api.github.com/users/szimeonovn/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-18T20:26:43Z","updated_at":"2016-12-18T20:35:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fb65ddcbe9e74b9dda78fc94a99dc9d06db51576","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/pulls/42/commits","review_comments_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/pulls/42/comments","review_comment_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/issues/42/comments","statuses_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/statuses/da29eb5d90f2f9b347e6a15accb6ab6d99f9734e","head":{"label":"schonherz-ui-2016:API","ref":"API","sha":"da29eb5d90f2f9b347e6a15accb6ab6d99f9734e","user":{"login":"schonherz-ui-2016","id":23014952,"avatar_url":"https://avatars.githubusercontent.com/u/23014952?v=3","gravatar_id":"","url":"https://api.github.com/users/schonherz-ui-2016","html_url":"https://github.com/schonherz-ui-2016","followers_url":"https://api.github.com/users/schonherz-ui-2016/followers","following_url":"https://api.github.com/users/schonherz-ui-2016/following{/other_user}","gists_url":"https://api.github.com/users/schonherz-ui-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/schonherz-ui-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schonherz-ui-2016/subscriptions","organizations_url":"https://api.github.com/users/schonherz-ui-2016/orgs","repos_url":"https://api.github.com/users/schonherz-ui-2016/repos","events_url":"https://api.github.com/users/schonherz-ui-2016/events{/privacy}","received_events_url":"https://api.github.com/users/schonherz-ui-2016/received_events","type":"Organization","site_admin":false},"repo":{"id":75477445,"name":"webshop","full_name":"schonherz-ui-2016/webshop","owner":{"login":"schonherz-ui-2016","id":23014952,"avatar_url":"https://avatars.githubusercontent.com/u/23014952?v=3","gravatar_id":"","url":"https://api.github.com/users/schonherz-ui-2016","html_url":"https://github.com/schonherz-ui-2016","followers_url":"https://api.github.com/users/schonherz-ui-2016/followers","following_url":"https://api.github.com/users/schonherz-ui-2016/following{/other_user}","gists_url":"https://api.github.com/users/schonherz-ui-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/schonherz-ui-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schonherz-ui-2016/subscriptions","organizations_url":"https://api.github.com/users/schonherz-ui-2016/orgs","repos_url":"https://api.github.com/users/schonherz-ui-2016/repos","events_url":"https://api.github.com/users/schonherz-ui-2016/events{/privacy}","received_events_url":"https://api.github.com/users/schonherz-ui-2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/schonherz-ui-2016/webshop","description":null,"fork":false,"url":"https://api.github.com/repos/schonherz-ui-2016/webshop","forks_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/forks","keys_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/teams","hooks_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/hooks","issue_events_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/issues/events{/number}","events_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/events","assignees_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/assignees{/user}","branches_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/branches{/branch}","tags_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/tags","blobs_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/statuses/{sha}","languages_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/languages","stargazers_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/stargazers","contributors_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/contributors","subscribers_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/subscribers","subscription_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/subscription","commits_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/contents/{+path}","compare_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/merges","archive_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/downloads","issues_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/issues{/number}","pulls_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/pulls{/number}","milestones_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/milestones{/number}","notifications_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/labels{/name}","releases_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/releases{/id}","deployments_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/deployments","created_at":"2016-12-03T14:08:43Z","updated_at":"2016-12-14T20:47:31Z","pushed_at":"2016-12-18T20:26:44Z","git_url":"git://github.com/schonherz-ui-2016/webshop.git","ssh_url":"git@github.com:schonherz-ui-2016/webshop.git","clone_url":"https://github.com/schonherz-ui-2016/webshop.git","svn_url":"https://github.com/schonherz-ui-2016/webshop","homepage":null,"size":46,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"schonherz-ui-2016:master","ref":"master","sha":"c907394b121e4fe9a80ce74584dcea0a61e047a4","user":{"login":"schonherz-ui-2016","id":23014952,"avatar_url":"https://avatars.githubusercontent.com/u/23014952?v=3","gravatar_id":"","url":"https://api.github.com/users/schonherz-ui-2016","html_url":"https://github.com/schonherz-ui-2016","followers_url":"https://api.github.com/users/schonherz-ui-2016/followers","following_url":"https://api.github.com/users/schonherz-ui-2016/following{/other_user}","gists_url":"https://api.github.com/users/schonherz-ui-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/schonherz-ui-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schonherz-ui-2016/subscriptions","organizations_url":"https://api.github.com/users/schonherz-ui-2016/orgs","repos_url":"https://api.github.com/users/schonherz-ui-2016/repos","events_url":"https://api.github.com/users/schonherz-ui-2016/events{/privacy}","received_events_url":"https://api.github.com/users/schonherz-ui-2016/received_events","type":"Organization","site_admin":false},"repo":{"id":75477445,"name":"webshop","full_name":"schonherz-ui-2016/webshop","owner":{"login":"schonherz-ui-2016","id":23014952,"avatar_url":"https://avatars.githubusercontent.com/u/23014952?v=3","gravatar_id":"","url":"https://api.github.com/users/schonherz-ui-2016","html_url":"https://github.com/schonherz-ui-2016","followers_url":"https://api.github.com/users/schonherz-ui-2016/followers","following_url":"https://api.github.com/users/schonherz-ui-2016/following{/other_user}","gists_url":"https://api.github.com/users/schonherz-ui-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/schonherz-ui-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schonherz-ui-2016/subscriptions","organizations_url":"https://api.github.com/users/schonherz-ui-2016/orgs","repos_url":"https://api.github.com/users/schonherz-ui-2016/repos","events_url":"https://api.github.com/users/schonherz-ui-2016/events{/privacy}","received_events_url":"https://api.github.com/users/schonherz-ui-2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/schonherz-ui-2016/webshop","description":null,"fork":false,"url":"https://api.github.com/repos/schonherz-ui-2016/webshop","forks_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/forks","keys_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/teams","hooks_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/hooks","issue_events_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/issues/events{/number}","events_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/events","assignees_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/assignees{/user}","branches_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/branches{/branch}","tags_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/tags","blobs_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/statuses/{sha}","languages_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/languages","stargazers_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/stargazers","contributors_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/contributors","subscribers_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/subscribers","subscription_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/subscription","commits_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/contents/{+path}","compare_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/merges","archive_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/downloads","issues_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/issues{/number}","pulls_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/pulls{/number}","milestones_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/milestones{/number}","notifications_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/labels{/name}","releases_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/releases{/id}","deployments_url":"https://api.github.com/repos/schonherz-ui-2016/webshop/deployments","created_at":"2016-12-03T14:08:43Z","updated_at":"2016-12-14T20:47:31Z","pushed_at":"2016-12-18T20:26:44Z","git_url":"git://github.com/schonherz-ui-2016/webshop.git","ssh_url":"git@github.com:schonherz-ui-2016/webshop.git","clone_url":"https://github.com/schonherz-ui-2016/webshop.git","svn_url":"https://github.com/schonherz-ui-2016/webshop","homepage":null,"size":46,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/schonherz-ui-2016/webshop/pulls/42"},"html":{"href":"https://github.com/schonherz-ui-2016/webshop/pull/42"},"issue":{"href":"https://api.github.com/repos/schonherz-ui-2016/webshop/issues/42"},"comments":{"href":"https://api.github.com/repos/schonherz-ui-2016/webshop/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/schonherz-ui-2016/webshop/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/schonherz-ui-2016/webshop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/schonherz-ui-2016/webshop/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/schonherz-ui-2016/webshop/statuses/da29eb5d90f2f9b347e6a15accb6ab6d99f9734e"}}}}
{"actor":{"display_login":"zsoltgyongyosi"}}