{"action":"created","comment":{"url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/pulls/comments/224533293","pull_request_review_id":163923984,"id":224533293,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDUzMzI5Mw==","diff_hunk":"@@ -0,0 +1,79 @@\n+const express = require(\"express\");\n+const helmet = require(\"helmet\");\n+const knex = require(\"knex\");\n+const knexConfig = require(\"./knexfile\");\n+\n+const server = express();\n+const db = knex(knexConfig.development);\n+\n+server.use(express.json());\n+server.use(helmet());\n+\n+// GET //\n+server.get(\"/api/cohorts\", (req, res) => {\n+  db(\"cohorts\")","path":"index.js","position":14,"original_position":14,"commit_id":"4441818dde13c8216bcc80e16daf006c8b0798da","original_commit_id":"4441818dde13c8216bcc80e16daf006c8b0798da","user":{"login":"gooseandmegander","id":16904116,"node_id":"MDQ6VXNlcjE2OTA0MTE2","avatar_url":"https://avatars1.githubusercontent.com/u/16904116?v=4","gravatar_id":"","url":"https://api.github.com/users/gooseandmegander","html_url":"https://github.com/gooseandmegander","followers_url":"https://api.github.com/users/gooseandmegander/followers","following_url":"https://api.github.com/users/gooseandmegander/following{/other_user}","gists_url":"https://api.github.com/users/gooseandmegander/gists{/gist_id}","starred_url":"https://api.github.com/users/gooseandmegander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gooseandmegander/subscriptions","organizations_url":"https://api.github.com/users/gooseandmegander/orgs","repos_url":"https://api.github.com/users/gooseandmegander/repos","events_url":"https://api.github.com/users/gooseandmegander/events{/privacy}","received_events_url":"https://api.github.com/users/gooseandmegander/received_events","type":"User","site_admin":false},"body":"You have the helper functions in the `models` directory, why aren't you using them?","created_at":"2018-10-11T17:20:24Z","updated_at":"2018-10-11T17:35:02Z","html_url":"https://github.com/LambdaSchool/RDBMS-API-Full/pull/168#discussion_r224533293","pull_request_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/pulls/168","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/pulls/comments/224533293"},"html":{"href":"https://github.com/LambdaSchool/RDBMS-API-Full/pull/168#discussion_r224533293"},"pull_request":{"href":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/pulls/168"}}},"pull_request":{"url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/pulls/168","id":221955788,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxOTU1Nzg4","html_url":"https://github.com/LambdaSchool/RDBMS-API-Full/pull/168","diff_url":"https://github.com/LambdaSchool/RDBMS-API-Full/pull/168.diff","patch_url":"https://github.com/LambdaSchool/RDBMS-API-Full/pull/168.patch","issue_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/issues/168","number":168,"state":"open","locked":false,"title":"Andrew Ghobrial --- RDBMS-API-Full","user":{"login":"ghobs91","id":4033636,"node_id":"MDQ6VXNlcjQwMzM2MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/4033636?v=4","gravatar_id":"","url":"https://api.github.com/users/ghobs91","html_url":"https://github.com/ghobs91","followers_url":"https://api.github.com/users/ghobs91/followers","following_url":"https://api.github.com/users/ghobs91/following{/other_user}","gists_url":"https://api.github.com/users/ghobs91/gists{/gist_id}","starred_url":"https://api.github.com/users/ghobs91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghobs91/subscriptions","organizations_url":"https://api.github.com/users/ghobs91/orgs","repos_url":"https://api.github.com/users/ghobs91/repos","events_url":"https://api.github.com/users/ghobs91/events{/privacy}","received_events_url":"https://api.github.com/users/ghobs91/received_events","type":"User","site_admin":false},"body":"@gooseandmegander","created_at":"2018-10-10T22:43:29Z","updated_at":"2018-10-11T17:35:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f34c76d482a8ecb70a534e0083c43f8a4f6bf06","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/pulls/168/commits","review_comments_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/pulls/168/comments","review_comment_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/issues/168/comments","statuses_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/statuses/4441818dde13c8216bcc80e16daf006c8b0798da","head":{"label":"ghobs91:master","ref":"master","sha":"4441818dde13c8216bcc80e16daf006c8b0798da","user":{"login":"ghobs91","id":4033636,"node_id":"MDQ6VXNlcjQwMzM2MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/4033636?v=4","gravatar_id":"","url":"https://api.github.com/users/ghobs91","html_url":"https://github.com/ghobs91","followers_url":"https://api.github.com/users/ghobs91/followers","following_url":"https://api.github.com/users/ghobs91/following{/other_user}","gists_url":"https://api.github.com/users/ghobs91/gists{/gist_id}","starred_url":"https://api.github.com/users/ghobs91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghobs91/subscriptions","organizations_url":"https://api.github.com/users/ghobs91/orgs","repos_url":"https://api.github.com/users/ghobs91/repos","events_url":"https://api.github.com/users/ghobs91/events{/privacy}","received_events_url":"https://api.github.com/users/ghobs91/received_events","type":"User","site_admin":false},"repo":{"id":152492617,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI0OTI2MTc=","name":"RDBMS-API-Full","full_name":"ghobs91/RDBMS-API-Full","private":false,"owner":{"login":"ghobs91","id":4033636,"node_id":"MDQ6VXNlcjQwMzM2MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/4033636?v=4","gravatar_id":"","url":"https://api.github.com/users/ghobs91","html_url":"https://github.com/ghobs91","followers_url":"https://api.github.com/users/ghobs91/followers","following_url":"https://api.github.com/users/ghobs91/following{/other_user}","gists_url":"https://api.github.com/users/ghobs91/gists{/gist_id}","starred_url":"https://api.github.com/users/ghobs91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghobs91/subscriptions","organizations_url":"https://api.github.com/users/ghobs91/orgs","repos_url":"https://api.github.com/users/ghobs91/repos","events_url":"https://api.github.com/users/ghobs91/events{/privacy}","received_events_url":"https://api.github.com/users/ghobs91/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ghobs91/RDBMS-API-Full","description":"Building an API using a Relational Database Full Sprint","fork":true,"url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full","forks_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/forks","keys_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/teams","hooks_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/hooks","issue_events_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/issues/events{/number}","events_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/events","assignees_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/assignees{/user}","branches_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/branches{/branch}","tags_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/tags","blobs_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/git/refs{/sha}","trees_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/statuses/{sha}","languages_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/languages","stargazers_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/stargazers","contributors_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/contributors","subscribers_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/subscribers","subscription_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/subscription","commits_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/commits{/sha}","git_commits_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/git/commits{/sha}","comments_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/comments{/number}","issue_comment_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/issues/comments{/number}","contents_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/contents/{+path}","compare_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/merges","archive_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/downloads","issues_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/issues{/number}","pulls_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/pulls{/number}","milestones_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/milestones{/number}","notifications_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/labels{/name}","releases_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/releases{/id}","deployments_url":"https://api.github.com/repos/ghobs91/RDBMS-API-Full/deployments","created_at":"2018-10-10T21:32:30Z","updated_at":"2018-10-11T03:11:21Z","pushed_at":"2018-10-11T03:11:19Z","git_url":"git://github.com/ghobs91/RDBMS-API-Full.git","ssh_url":"git@github.com:ghobs91/RDBMS-API-Full.git","clone_url":"https://github.com/ghobs91/RDBMS-API-Full.git","svn_url":"https://github.com/ghobs91/RDBMS-API-Full","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LambdaSchool:master","ref":"master","sha":"7610b4834e10696762c0273a848e78376af7df23","user":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":113361883,"node_id":"MDEwOlJlcG9zaXRvcnkxMTMzNjE4ODM=","name":"RDBMS-API-Full","full_name":"LambdaSchool/RDBMS-API-Full","private":false,"owner":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/LambdaSchool/RDBMS-API-Full","description":"Building an API using a Relational Database Full Sprint","fork":false,"url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full","forks_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/forks","keys_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/teams","hooks_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/hooks","issue_events_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/issues/events{/number}","events_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/events","assignees_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/assignees{/user}","branches_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/branches{/branch}","tags_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/tags","blobs_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/git/refs{/sha}","trees_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/statuses/{sha}","languages_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/languages","stargazers_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/stargazers","contributors_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/contributors","subscribers_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/subscribers","subscription_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/subscription","commits_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/commits{/sha}","git_commits_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/git/commits{/sha}","comments_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/comments{/number}","issue_comment_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/issues/comments{/number}","contents_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/contents/{+path}","compare_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/merges","archive_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/downloads","issues_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/issues{/number}","pulls_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/pulls{/number}","milestones_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/milestones{/number}","notifications_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/labels{/name}","releases_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/releases{/id}","deployments_url":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/deployments","created_at":"2017-12-06T20:04:07Z","updated_at":"2018-10-09T23:08:27Z","pushed_at":"2018-10-11T16:23:21Z","git_url":"git://github.com/LambdaSchool/RDBMS-API-Full.git","ssh_url":"git@github.com:LambdaSchool/RDBMS-API-Full.git","clone_url":"https://github.com/LambdaSchool/RDBMS-API-Full.git","svn_url":"https://github.com/LambdaSchool/RDBMS-API-Full","homepage":null,"size":6,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":250,"mirror_url":null,"archived":false,"open_issues_count":182,"license":null,"forks":250,"open_issues":182,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/pulls/168"},"html":{"href":"https://github.com/LambdaSchool/RDBMS-API-Full/pull/168"},"issue":{"href":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/issues/168"},"comments":{"href":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/issues/168/comments"},"review_comments":{"href":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/pulls/168/comments"},"review_comment":{"href":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/pulls/168/commits"},"statuses":{"href":"https://api.github.com/repos/LambdaSchool/RDBMS-API-Full/statuses/4441818dde13c8216bcc80e16daf006c8b0798da"}},"author_association":"NONE"}}
{"actor":{"display_login":"gooseandmegander"}}