{"action":"created","comment":{"url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/pulls/comments/44942388","id":44942388,"diff_hunk":"@@ -17,32 +23,578 @@ const parseJade = (path, jadeContent) => {\n };\n \n const router = new Router();\n+router.use(cookieParser());\n+let client = redis.createClient();\n+let UserId = 'undef';\n \n-router.get('/', async (req, res, next) => {\n-  try {\n-    const path = req.query.path;\n+if (process.env.REDISTOGO_URL) {\n+  let rtg   = url.parse(process.env.REDISTOGO_URL);\n+  let client = redis.createClient(rtg.port, rtg.hostname);","path":"src/api/content.js","position":26,"original_position":26,"commit_id":"4c1694f64e3fbd362157b803b38e6ef0ff4dd034","original_commit_id":"4c1694f64e3fbd362157b803b38e6ef0ff4dd034","user":{"login":"szdavid92","id":5807322,"avatar_url":"https://avatars.githubusercontent.com/u/5807322?v=3","gravatar_id":"","url":"https://api.github.com/users/szdavid92","html_url":"https://github.com/szdavid92","followers_url":"https://api.github.com/users/szdavid92/followers","following_url":"https://api.github.com/users/szdavid92/following{/other_user}","gists_url":"https://api.github.com/users/szdavid92/gists{/gist_id}","starred_url":"https://api.github.com/users/szdavid92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szdavid92/subscriptions","organizations_url":"https://api.github.com/users/szdavid92/orgs","repos_url":"https://api.github.com/users/szdavid92/repos","events_url":"https://api.github.com/users/szdavid92/events{/privacy}","received_events_url":"https://api.github.com/users/szdavid92/received_events","type":"User","site_admin":false},"body":"rename this to `redisClient` or `databaseClient` or something more specific","created_at":"2015-11-16T16:08:48Z","updated_at":"2015-11-16T16:08:48Z","html_url":"https://github.com/GD-SoftArch-2015/yacha/pull/4#discussion_r44942388","pull_request_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/GD-SoftArch-2015/yacha/pulls/comments/44942388"},"html":{"href":"https://github.com/GD-SoftArch-2015/yacha/pull/4#discussion_r44942388"},"pull_request":{"href":"https://api.github.com/repos/GD-SoftArch-2015/yacha/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/pulls/4","id":50262073,"html_url":"https://github.com/GD-SoftArch-2015/yacha/pull/4","diff_url":"https://github.com/GD-SoftArch-2015/yacha/pull/4.diff","patch_url":"https://github.com/GD-SoftArch-2015/yacha/pull/4.patch","issue_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/issues/4","number":4,"state":"open","locked":false,"title":"Feature/rest api implementation - api impl eleje","user":{"login":"ggergo91","id":14236951,"avatar_url":"https://avatars.githubusercontent.com/u/14236951?v=3","gravatar_id":"","url":"https://api.github.com/users/ggergo91","html_url":"https://github.com/ggergo91","followers_url":"https://api.github.com/users/ggergo91/followers","following_url":"https://api.github.com/users/ggergo91/following{/other_user}","gists_url":"https://api.github.com/users/ggergo91/gists{/gist_id}","starred_url":"https://api.github.com/users/ggergo91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggergo91/subscriptions","organizations_url":"https://api.github.com/users/ggergo91/orgs","repos_url":"https://api.github.com/users/ggergo91/repos","events_url":"https://api.github.com/users/ggergo91/events{/privacy}","received_events_url":"https://api.github.com/users/ggergo91/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-10T14:48:18Z","updated_at":"2015-11-16T16:08:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93e05b1d1c4d92b52de0403294fc69f0fe052ebe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/pulls/4/commits","review_comments_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/pulls/4/comments","review_comment_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/issues/4/comments","statuses_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/statuses/4c1694f64e3fbd362157b803b38e6ef0ff4dd034","head":{"label":"GD-SoftArch-2015:feature/rest-api-implementation","ref":"feature/rest-api-implementation","sha":"4c1694f64e3fbd362157b803b38e6ef0ff4dd034","user":{"login":"GD-SoftArch-2015","id":14234432,"avatar_url":"https://avatars.githubusercontent.com/u/14234432?v=3","gravatar_id":"","url":"https://api.github.com/users/GD-SoftArch-2015","html_url":"https://github.com/GD-SoftArch-2015","followers_url":"https://api.github.com/users/GD-SoftArch-2015/followers","following_url":"https://api.github.com/users/GD-SoftArch-2015/following{/other_user}","gists_url":"https://api.github.com/users/GD-SoftArch-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/GD-SoftArch-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GD-SoftArch-2015/subscriptions","organizations_url":"https://api.github.com/users/GD-SoftArch-2015/orgs","repos_url":"https://api.github.com/users/GD-SoftArch-2015/repos","events_url":"https://api.github.com/users/GD-SoftArch-2015/events{/privacy}","received_events_url":"https://api.github.com/users/GD-SoftArch-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":42306985,"name":"yacha","full_name":"GD-SoftArch-2015/yacha","owner":{"login":"GD-SoftArch-2015","id":14234432,"avatar_url":"https://avatars.githubusercontent.com/u/14234432?v=3","gravatar_id":"","url":"https://api.github.com/users/GD-SoftArch-2015","html_url":"https://github.com/GD-SoftArch-2015","followers_url":"https://api.github.com/users/GD-SoftArch-2015/followers","following_url":"https://api.github.com/users/GD-SoftArch-2015/following{/other_user}","gists_url":"https://api.github.com/users/GD-SoftArch-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/GD-SoftArch-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GD-SoftArch-2015/subscriptions","organizations_url":"https://api.github.com/users/GD-SoftArch-2015/orgs","repos_url":"https://api.github.com/users/GD-SoftArch-2015/repos","events_url":"https://api.github.com/users/GD-SoftArch-2015/events{/privacy}","received_events_url":"https://api.github.com/users/GD-SoftArch-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GD-SoftArch-2015/yacha","description":"The main repo for the 2015 home assignment","fork":false,"url":"https://api.github.com/repos/GD-SoftArch-2015/yacha","forks_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/forks","keys_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/teams","hooks_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/hooks","issue_events_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/issues/events{/number}","events_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/events","assignees_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/assignees{/user}","branches_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/branches{/branch}","tags_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/tags","blobs_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/git/refs{/sha}","trees_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/statuses/{sha}","languages_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/languages","stargazers_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/stargazers","contributors_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/contributors","subscribers_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/subscribers","subscription_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/subscription","commits_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/commits{/sha}","git_commits_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/git/commits{/sha}","comments_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/comments{/number}","issue_comment_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/issues/comments{/number}","contents_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/contents/{+path}","compare_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/merges","archive_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/downloads","issues_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/issues{/number}","pulls_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/pulls{/number}","milestones_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/milestones{/number}","notifications_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/labels{/name}","releases_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/releases{/id}","created_at":"2015-09-11T12:25:24Z","updated_at":"2015-10-17T11:55:23Z","pushed_at":"2015-11-14T15:00:29Z","git_url":"git://github.com/GD-SoftArch-2015/yacha.git","ssh_url":"git@github.com:GD-SoftArch-2015/yacha.git","clone_url":"https://github.com/GD-SoftArch-2015/yacha.git","svn_url":"https://github.com/GD-SoftArch-2015/yacha","homepage":null,"size":956,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"GD-SoftArch-2015:master","ref":"master","sha":"eb66778db03d142766214e6e4a80571b580f21e3","user":{"login":"GD-SoftArch-2015","id":14234432,"avatar_url":"https://avatars.githubusercontent.com/u/14234432?v=3","gravatar_id":"","url":"https://api.github.com/users/GD-SoftArch-2015","html_url":"https://github.com/GD-SoftArch-2015","followers_url":"https://api.github.com/users/GD-SoftArch-2015/followers","following_url":"https://api.github.com/users/GD-SoftArch-2015/following{/other_user}","gists_url":"https://api.github.com/users/GD-SoftArch-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/GD-SoftArch-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GD-SoftArch-2015/subscriptions","organizations_url":"https://api.github.com/users/GD-SoftArch-2015/orgs","repos_url":"https://api.github.com/users/GD-SoftArch-2015/repos","events_url":"https://api.github.com/users/GD-SoftArch-2015/events{/privacy}","received_events_url":"https://api.github.com/users/GD-SoftArch-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":42306985,"name":"yacha","full_name":"GD-SoftArch-2015/yacha","owner":{"login":"GD-SoftArch-2015","id":14234432,"avatar_url":"https://avatars.githubusercontent.com/u/14234432?v=3","gravatar_id":"","url":"https://api.github.com/users/GD-SoftArch-2015","html_url":"https://github.com/GD-SoftArch-2015","followers_url":"https://api.github.com/users/GD-SoftArch-2015/followers","following_url":"https://api.github.com/users/GD-SoftArch-2015/following{/other_user}","gists_url":"https://api.github.com/users/GD-SoftArch-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/GD-SoftArch-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GD-SoftArch-2015/subscriptions","organizations_url":"https://api.github.com/users/GD-SoftArch-2015/orgs","repos_url":"https://api.github.com/users/GD-SoftArch-2015/repos","events_url":"https://api.github.com/users/GD-SoftArch-2015/events{/privacy}","received_events_url":"https://api.github.com/users/GD-SoftArch-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GD-SoftArch-2015/yacha","description":"The main repo for the 2015 home assignment","fork":false,"url":"https://api.github.com/repos/GD-SoftArch-2015/yacha","forks_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/forks","keys_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/teams","hooks_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/hooks","issue_events_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/issues/events{/number}","events_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/events","assignees_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/assignees{/user}","branches_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/branches{/branch}","tags_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/tags","blobs_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/git/refs{/sha}","trees_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/statuses/{sha}","languages_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/languages","stargazers_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/stargazers","contributors_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/contributors","subscribers_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/subscribers","subscription_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/subscription","commits_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/commits{/sha}","git_commits_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/git/commits{/sha}","comments_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/comments{/number}","issue_comment_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/issues/comments{/number}","contents_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/contents/{+path}","compare_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/merges","archive_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/downloads","issues_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/issues{/number}","pulls_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/pulls{/number}","milestones_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/milestones{/number}","notifications_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/labels{/name}","releases_url":"https://api.github.com/repos/GD-SoftArch-2015/yacha/releases{/id}","created_at":"2015-09-11T12:25:24Z","updated_at":"2015-10-17T11:55:23Z","pushed_at":"2015-11-14T15:00:29Z","git_url":"git://github.com/GD-SoftArch-2015/yacha.git","ssh_url":"git@github.com:GD-SoftArch-2015/yacha.git","clone_url":"https://github.com/GD-SoftArch-2015/yacha.git","svn_url":"https://github.com/GD-SoftArch-2015/yacha","homepage":null,"size":956,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GD-SoftArch-2015/yacha/pulls/4"},"html":{"href":"https://github.com/GD-SoftArch-2015/yacha/pull/4"},"issue":{"href":"https://api.github.com/repos/GD-SoftArch-2015/yacha/issues/4"},"comments":{"href":"https://api.github.com/repos/GD-SoftArch-2015/yacha/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/GD-SoftArch-2015/yacha/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/GD-SoftArch-2015/yacha/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GD-SoftArch-2015/yacha/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/GD-SoftArch-2015/yacha/statuses/4c1694f64e3fbd362157b803b38e6ef0ff4dd034"}}}}