{"action":"created","comment":{"url":"https://api.github.com/repos/BoxLunch89/q-a-service/pulls/comments/170388563","pull_request_review_id":99075059,"id":170388563,"diff_hunk":"@@ -5,28 +5,31 @@ const cors = require('cors');\n const app = express();\n const port = 3000;\n const dumbData = require('../dumbData');\n+const data = require('../fakeData')\n \n app.use(bodyParser.urlencoded({extended: true}));\n app.use(cors());\n \n app.use(express.static('../client/public'))\n \n-app.get('/test', (req, res) => {\n-    if (!dumbData.simpleData){\n+\n+app.get('/listing', (req, res) => {\n+    if (!data.fakeData){\n         res.status(404).json({message: 'no data here'})\n     }\n-    res.json(dumbData.simpleData);\n+    res.json(data.fakeData);\n });\n \n-app.get('/test/:id', (req, res) => {\n+app.get('/listing/:id', (req, res) => {\n     const requestId = req.params.id;\n \n-    let item = dumbData.simpleData.filter((question) => {\n-        return requestId == question.id;\n+    let item = data.fakeData.filter((questions) => {\n+        return requestId == questions.id;","path":"server/server.js","position":29,"original_position":29,"commit_id":"bd2425100996fe9eee8471728fa48c15c965eddc","original_commit_id":"bd2425100996fe9eee8471728fa48c15c965eddc","user":{"login":"kguinto","id":13979068,"avatar_url":"https://avatars2.githubusercontent.com/u/13979068?v=4","gravatar_id":"","url":"https://api.github.com/users/kguinto","html_url":"https://github.com/kguinto","followers_url":"https://api.github.com/users/kguinto/followers","following_url":"https://api.github.com/users/kguinto/following{/other_user}","gists_url":"https://api.github.com/users/kguinto/gists{/gist_id}","starred_url":"https://api.github.com/users/kguinto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kguinto/subscriptions","organizations_url":"https://api.github.com/users/kguinto/orgs","repos_url":"https://api.github.com/users/kguinto/repos","events_url":"https://api.github.com/users/kguinto/events{/privacy}","received_events_url":"https://api.github.com/users/kguinto/received_events","type":"User","site_admin":false},"body":"===","created_at":"2018-02-23T22:55:37Z","updated_at":"2018-02-23T23:04:07Z","html_url":"https://github.com/BoxLunch89/q-a-service/pull/1#discussion_r170388563","pull_request_url":"https://api.github.com/repos/BoxLunch89/q-a-service/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/BoxLunch89/q-a-service/pulls/comments/170388563"},"html":{"href":"https://github.com/BoxLunch89/q-a-service/pull/1#discussion_r170388563"},"pull_request":{"href":"https://api.github.com/repos/BoxLunch89/q-a-service/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/BoxLunch89/q-a-service/pulls/1","id":171132882,"html_url":"https://github.com/BoxLunch89/q-a-service/pull/1","diff_url":"https://github.com/BoxLunch89/q-a-service/pull/1.diff","patch_url":"https://github.com/BoxLunch89/q-a-service/pull/1.patch","issue_url":"https://api.github.com/repos/BoxLunch89/q-a-service/issues/1","number":1,"state":"open","locked":false,"title":"Fake data","user":{"login":"Kyle-Chambers","id":30457553,"avatar_url":"https://avatars0.githubusercontent.com/u/30457553?v=4","gravatar_id":"","url":"https://api.github.com/users/Kyle-Chambers","html_url":"https://github.com/Kyle-Chambers","followers_url":"https://api.github.com/users/Kyle-Chambers/followers","following_url":"https://api.github.com/users/Kyle-Chambers/following{/other_user}","gists_url":"https://api.github.com/users/Kyle-Chambers/gists{/gist_id}","starred_url":"https://api.github.com/users/Kyle-Chambers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kyle-Chambers/subscriptions","organizations_url":"https://api.github.com/users/Kyle-Chambers/orgs","repos_url":"https://api.github.com/users/Kyle-Chambers/repos","events_url":"https://api.github.com/users/Kyle-Chambers/events{/privacy}","received_events_url":"https://api.github.com/users/Kyle-Chambers/received_events","type":"User","site_admin":false},"body":"Generated realistic data for Q & A section.","created_at":"2018-02-23T22:36:51Z","updated_at":"2018-02-23T23:04:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76b04acbcdc0a30e9a1db6aafd961f22a08a157f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BoxLunch89/q-a-service/pulls/1/commits","review_comments_url":"https://api.github.com/repos/BoxLunch89/q-a-service/pulls/1/comments","review_comment_url":"https://api.github.com/repos/BoxLunch89/q-a-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BoxLunch89/q-a-service/issues/1/comments","statuses_url":"https://api.github.com/repos/BoxLunch89/q-a-service/statuses/bd2425100996fe9eee8471728fa48c15c965eddc","head":{"label":"BoxLunch89:fake-data","ref":"fake-data","sha":"bd2425100996fe9eee8471728fa48c15c965eddc","user":{"login":"BoxLunch89","id":36683228,"avatar_url":"https://avatars0.githubusercontent.com/u/36683228?v=4","gravatar_id":"","url":"https://api.github.com/users/BoxLunch89","html_url":"https://github.com/BoxLunch89","followers_url":"https://api.github.com/users/BoxLunch89/followers","following_url":"https://api.github.com/users/BoxLunch89/following{/other_user}","gists_url":"https://api.github.com/users/BoxLunch89/gists{/gist_id}","starred_url":"https://api.github.com/users/BoxLunch89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoxLunch89/subscriptions","organizations_url":"https://api.github.com/users/BoxLunch89/orgs","repos_url":"https://api.github.com/users/BoxLunch89/repos","events_url":"https://api.github.com/users/BoxLunch89/events{/privacy}","received_events_url":"https://api.github.com/users/BoxLunch89/received_events","type":"Organization","site_admin":false},"repo":{"id":122289730,"name":"q-a-service","full_name":"BoxLunch89/q-a-service","owner":{"login":"BoxLunch89","id":36683228,"avatar_url":"https://avatars0.githubusercontent.com/u/36683228?v=4","gravatar_id":"","url":"https://api.github.com/users/BoxLunch89","html_url":"https://github.com/BoxLunch89","followers_url":"https://api.github.com/users/BoxLunch89/followers","following_url":"https://api.github.com/users/BoxLunch89/following{/other_user}","gists_url":"https://api.github.com/users/BoxLunch89/gists{/gist_id}","starred_url":"https://api.github.com/users/BoxLunch89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoxLunch89/subscriptions","organizations_url":"https://api.github.com/users/BoxLunch89/orgs","repos_url":"https://api.github.com/users/BoxLunch89/repos","events_url":"https://api.github.com/users/BoxLunch89/events{/privacy}","received_events_url":"https://api.github.com/users/BoxLunch89/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BoxLunch89/q-a-service","description":null,"fork":false,"url":"https://api.github.com/repos/BoxLunch89/q-a-service","forks_url":"https://api.github.com/repos/BoxLunch89/q-a-service/forks","keys_url":"https://api.github.com/repos/BoxLunch89/q-a-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BoxLunch89/q-a-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BoxLunch89/q-a-service/teams","hooks_url":"https://api.github.com/repos/BoxLunch89/q-a-service/hooks","issue_events_url":"https://api.github.com/repos/BoxLunch89/q-a-service/issues/events{/number}","events_url":"https://api.github.com/repos/BoxLunch89/q-a-service/events","assignees_url":"https://api.github.com/repos/BoxLunch89/q-a-service/assignees{/user}","branches_url":"https://api.github.com/repos/BoxLunch89/q-a-service/branches{/branch}","tags_url":"https://api.github.com/repos/BoxLunch89/q-a-service/tags","blobs_url":"https://api.github.com/repos/BoxLunch89/q-a-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BoxLunch89/q-a-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BoxLunch89/q-a-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/BoxLunch89/q-a-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BoxLunch89/q-a-service/statuses/{sha}","languages_url":"https://api.github.com/repos/BoxLunch89/q-a-service/languages","stargazers_url":"https://api.github.com/repos/BoxLunch89/q-a-service/stargazers","contributors_url":"https://api.github.com/repos/BoxLunch89/q-a-service/contributors","subscribers_url":"https://api.github.com/repos/BoxLunch89/q-a-service/subscribers","subscription_url":"https://api.github.com/repos/BoxLunch89/q-a-service/subscription","commits_url":"https://api.github.com/repos/BoxLunch89/q-a-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/BoxLunch89/q-a-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/BoxLunch89/q-a-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/BoxLunch89/q-a-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/BoxLunch89/q-a-service/contents/{+path}","compare_url":"https://api.github.com/repos/BoxLunch89/q-a-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BoxLunch89/q-a-service/merges","archive_url":"https://api.github.com/repos/BoxLunch89/q-a-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BoxLunch89/q-a-service/downloads","issues_url":"https://api.github.com/repos/BoxLunch89/q-a-service/issues{/number}","pulls_url":"https://api.github.com/repos/BoxLunch89/q-a-service/pulls{/number}","milestones_url":"https://api.github.com/repos/BoxLunch89/q-a-service/milestones{/number}","notifications_url":"https://api.github.com/repos/BoxLunch89/q-a-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BoxLunch89/q-a-service/labels{/name}","releases_url":"https://api.github.com/repos/BoxLunch89/q-a-service/releases{/id}","deployments_url":"https://api.github.com/repos/BoxLunch89/q-a-service/deployments","created_at":"2018-02-21T03:54:26Z","updated_at":"2018-02-22T19:40:14Z","pushed_at":"2018-02-23T22:36:52Z","git_url":"git://github.com/BoxLunch89/q-a-service.git","ssh_url":"git@github.com:BoxLunch89/q-a-service.git","clone_url":"https://github.com/BoxLunch89/q-a-service.git","svn_url":"https://github.com/BoxLunch89/q-a-service","homepage":null,"size":734,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"BoxLunch89:master","ref":"master","sha":"20f72f8358077d9601d7d52f4a54de8dda0b717c","user":{"login":"BoxLunch89","id":36683228,"avatar_url":"https://avatars0.githubusercontent.com/u/36683228?v=4","gravatar_id":"","url":"https://api.github.com/users/BoxLunch89","html_url":"https://github.com/BoxLunch89","followers_url":"https://api.github.com/users/BoxLunch89/followers","following_url":"https://api.github.com/users/BoxLunch89/following{/other_user}","gists_url":"https://api.github.com/users/BoxLunch89/gists{/gist_id}","starred_url":"https://api.github.com/users/BoxLunch89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoxLunch89/subscriptions","organizations_url":"https://api.github.com/users/BoxLunch89/orgs","repos_url":"https://api.github.com/users/BoxLunch89/repos","events_url":"https://api.github.com/users/BoxLunch89/events{/privacy}","received_events_url":"https://api.github.com/users/BoxLunch89/received_events","type":"Organization","site_admin":false},"repo":{"id":122289730,"name":"q-a-service","full_name":"BoxLunch89/q-a-service","owner":{"login":"BoxLunch89","id":36683228,"avatar_url":"https://avatars0.githubusercontent.com/u/36683228?v=4","gravatar_id":"","url":"https://api.github.com/users/BoxLunch89","html_url":"https://github.com/BoxLunch89","followers_url":"https://api.github.com/users/BoxLunch89/followers","following_url":"https://api.github.com/users/BoxLunch89/following{/other_user}","gists_url":"https://api.github.com/users/BoxLunch89/gists{/gist_id}","starred_url":"https://api.github.com/users/BoxLunch89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoxLunch89/subscriptions","organizations_url":"https://api.github.com/users/BoxLunch89/orgs","repos_url":"https://api.github.com/users/BoxLunch89/repos","events_url":"https://api.github.com/users/BoxLunch89/events{/privacy}","received_events_url":"https://api.github.com/users/BoxLunch89/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BoxLunch89/q-a-service","description":null,"fork":false,"url":"https://api.github.com/repos/BoxLunch89/q-a-service","forks_url":"https://api.github.com/repos/BoxLunch89/q-a-service/forks","keys_url":"https://api.github.com/repos/BoxLunch89/q-a-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BoxLunch89/q-a-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BoxLunch89/q-a-service/teams","hooks_url":"https://api.github.com/repos/BoxLunch89/q-a-service/hooks","issue_events_url":"https://api.github.com/repos/BoxLunch89/q-a-service/issues/events{/number}","events_url":"https://api.github.com/repos/BoxLunch89/q-a-service/events","assignees_url":"https://api.github.com/repos/BoxLunch89/q-a-service/assignees{/user}","branches_url":"https://api.github.com/repos/BoxLunch89/q-a-service/branches{/branch}","tags_url":"https://api.github.com/repos/BoxLunch89/q-a-service/tags","blobs_url":"https://api.github.com/repos/BoxLunch89/q-a-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BoxLunch89/q-a-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BoxLunch89/q-a-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/BoxLunch89/q-a-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BoxLunch89/q-a-service/statuses/{sha}","languages_url":"https://api.github.com/repos/BoxLunch89/q-a-service/languages","stargazers_url":"https://api.github.com/repos/BoxLunch89/q-a-service/stargazers","contributors_url":"https://api.github.com/repos/BoxLunch89/q-a-service/contributors","subscribers_url":"https://api.github.com/repos/BoxLunch89/q-a-service/subscribers","subscription_url":"https://api.github.com/repos/BoxLunch89/q-a-service/subscription","commits_url":"https://api.github.com/repos/BoxLunch89/q-a-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/BoxLunch89/q-a-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/BoxLunch89/q-a-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/BoxLunch89/q-a-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/BoxLunch89/q-a-service/contents/{+path}","compare_url":"https://api.github.com/repos/BoxLunch89/q-a-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BoxLunch89/q-a-service/merges","archive_url":"https://api.github.com/repos/BoxLunch89/q-a-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BoxLunch89/q-a-service/downloads","issues_url":"https://api.github.com/repos/BoxLunch89/q-a-service/issues{/number}","pulls_url":"https://api.github.com/repos/BoxLunch89/q-a-service/pulls{/number}","milestones_url":"https://api.github.com/repos/BoxLunch89/q-a-service/milestones{/number}","notifications_url":"https://api.github.com/repos/BoxLunch89/q-a-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BoxLunch89/q-a-service/labels{/name}","releases_url":"https://api.github.com/repos/BoxLunch89/q-a-service/releases{/id}","deployments_url":"https://api.github.com/repos/BoxLunch89/q-a-service/deployments","created_at":"2018-02-21T03:54:26Z","updated_at":"2018-02-22T19:40:14Z","pushed_at":"2018-02-23T22:36:52Z","git_url":"git://github.com/BoxLunch89/q-a-service.git","ssh_url":"git@github.com:BoxLunch89/q-a-service.git","clone_url":"https://github.com/BoxLunch89/q-a-service.git","svn_url":"https://github.com/BoxLunch89/q-a-service","homepage":null,"size":734,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BoxLunch89/q-a-service/pulls/1"},"html":{"href":"https://github.com/BoxLunch89/q-a-service/pull/1"},"issue":{"href":"https://api.github.com/repos/BoxLunch89/q-a-service/issues/1"},"comments":{"href":"https://api.github.com/repos/BoxLunch89/q-a-service/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/BoxLunch89/q-a-service/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/BoxLunch89/q-a-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BoxLunch89/q-a-service/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/BoxLunch89/q-a-service/statuses/bd2425100996fe9eee8471728fa48c15c965eddc"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kguinto"}}