{"action":"created","comment":{"url":"https://api.github.com/repos/satuba/geo-adventure/pulls/comments/30528058","id":30528058,"diff_hunk":"@@ -1,8 +1,27 @@\n \"use strict\";\n \n+var mongoose = require(\"mongoose\");\n var express = require(\"express\");\n+var passport = require(\"passport\");\n var app = express();\n \n+process.env.APP_SECRET = process.env.APP_SECRET || \"app wide secret, Claudia\";\n+\n+var challengeRoutes = express.Router();\n+var userRoutes = express.Router();\n+\n+mongoose.connect(process.env.MONGOLAB_URI || \"mongodb://localhost/challenges_development\");\n+\n+app.use(passport.initialize());\n+\n+require(\"./lib/passport_strategies\")(passport);\n+\n+require(\"./routes/challenge_routes\")(challengeRoutes);\n+require(\".routes/auth_routes\")(userRoutes, passport);","path":"server.js","position":20,"original_position":20,"commit_id":"0826a59a0a2eed65ade3963c6c1a3522cebd9916","original_commit_id":"0826a59a0a2eed65ade3963c6c1a3522cebd9916","user":{"login":"omordn","id":10063974,"avatar_url":"https://avatars.githubusercontent.com/u/10063974?v=3","gravatar_id":"","url":"https://api.github.com/users/omordn","html_url":"https://github.com/omordn","followers_url":"https://api.github.com/users/omordn/followers","following_url":"https://api.github.com/users/omordn/following{/other_user}","gists_url":"https://api.github.com/users/omordn/gists{/gist_id}","starred_url":"https://api.github.com/users/omordn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omordn/subscriptions","organizations_url":"https://api.github.com/users/omordn/orgs","repos_url":"https://api.github.com/users/omordn/repos","events_url":"https://api.github.com/users/omordn/events{/privacy}","received_events_url":"https://api.github.com/users/omordn/received_events","type":"User","site_admin":false},"body":"this has a syntax error for the routes path","created_at":"2015-05-18T17:20:50Z","updated_at":"2015-05-18T17:20:50Z","html_url":"https://github.com/satuba/geo-adventure/pull/2#discussion_r30528058","pull_request_url":"https://api.github.com/repos/satuba/geo-adventure/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/satuba/geo-adventure/pulls/comments/30528058"},"html":{"href":"https://github.com/satuba/geo-adventure/pull/2#discussion_r30528058"},"pull_request":{"href":"https://api.github.com/repos/satuba/geo-adventure/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/satuba/geo-adventure/pulls/2","id":35654054,"html_url":"https://github.com/satuba/geo-adventure/pull/2","diff_url":"https://github.com/satuba/geo-adventure/pull/2.diff","patch_url":"https://github.com/satuba/geo-adventure/pull/2.patch","issue_url":"https://api.github.com/repos/satuba/geo-adventure/issues/2","number":2,"state":"open","locked":false,"title":"add stuff to server","user":{"login":"satuba","id":8252885,"avatar_url":"https://avatars.githubusercontent.com/u/8252885?v=3","gravatar_id":"","url":"https://api.github.com/users/satuba","html_url":"https://github.com/satuba","followers_url":"https://api.github.com/users/satuba/followers","following_url":"https://api.github.com/users/satuba/following{/other_user}","gists_url":"https://api.github.com/users/satuba/gists{/gist_id}","starred_url":"https://api.github.com/users/satuba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satuba/subscriptions","organizations_url":"https://api.github.com/users/satuba/orgs","repos_url":"https://api.github.com/users/satuba/repos","events_url":"https://api.github.com/users/satuba/events{/privacy}","received_events_url":"https://api.github.com/users/satuba/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-18T17:12:11Z","updated_at":"2015-05-18T17:20:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d2c634cc6f8324e3e9c606f9eacd51f593b7f808","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/satuba/geo-adventure/pulls/2/commits","review_comments_url":"https://api.github.com/repos/satuba/geo-adventure/pulls/2/comments","review_comment_url":"https://api.github.com/repos/satuba/geo-adventure/pulls/comments{/number}","comments_url":"https://api.github.com/repos/satuba/geo-adventure/issues/2/comments","statuses_url":"https://api.github.com/repos/satuba/geo-adventure/statuses/0826a59a0a2eed65ade3963c6c1a3522cebd9916","head":{"label":"satuba:satucoding","ref":"satucoding","sha":"0826a59a0a2eed65ade3963c6c1a3522cebd9916","user":{"login":"satuba","id":8252885,"avatar_url":"https://avatars.githubusercontent.com/u/8252885?v=3","gravatar_id":"","url":"https://api.github.com/users/satuba","html_url":"https://github.com/satuba","followers_url":"https://api.github.com/users/satuba/followers","following_url":"https://api.github.com/users/satuba/following{/other_user}","gists_url":"https://api.github.com/users/satuba/gists{/gist_id}","starred_url":"https://api.github.com/users/satuba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satuba/subscriptions","organizations_url":"https://api.github.com/users/satuba/orgs","repos_url":"https://api.github.com/users/satuba/repos","events_url":"https://api.github.com/users/satuba/events{/privacy}","received_events_url":"https://api.github.com/users/satuba/received_events","type":"User","site_admin":false},"repo":{"id":35797772,"name":"geo-adventure","full_name":"satuba/geo-adventure","owner":{"login":"satuba","id":8252885,"avatar_url":"https://avatars.githubusercontent.com/u/8252885?v=3","gravatar_id":"","url":"https://api.github.com/users/satuba","html_url":"https://github.com/satuba","followers_url":"https://api.github.com/users/satuba/followers","following_url":"https://api.github.com/users/satuba/following{/other_user}","gists_url":"https://api.github.com/users/satuba/gists{/gist_id}","starred_url":"https://api.github.com/users/satuba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satuba/subscriptions","organizations_url":"https://api.github.com/users/satuba/orgs","repos_url":"https://api.github.com/users/satuba/repos","events_url":"https://api.github.com/users/satuba/events{/privacy}","received_events_url":"https://api.github.com/users/satuba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/satuba/geo-adventure","description":"","fork":false,"url":"https://api.github.com/repos/satuba/geo-adventure","forks_url":"https://api.github.com/repos/satuba/geo-adventure/forks","keys_url":"https://api.github.com/repos/satuba/geo-adventure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/satuba/geo-adventure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/satuba/geo-adventure/teams","hooks_url":"https://api.github.com/repos/satuba/geo-adventure/hooks","issue_events_url":"https://api.github.com/repos/satuba/geo-adventure/issues/events{/number}","events_url":"https://api.github.com/repos/satuba/geo-adventure/events","assignees_url":"https://api.github.com/repos/satuba/geo-adventure/assignees{/user}","branches_url":"https://api.github.com/repos/satuba/geo-adventure/branches{/branch}","tags_url":"https://api.github.com/repos/satuba/geo-adventure/tags","blobs_url":"https://api.github.com/repos/satuba/geo-adventure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/satuba/geo-adventure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/satuba/geo-adventure/git/refs{/sha}","trees_url":"https://api.github.com/repos/satuba/geo-adventure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/satuba/geo-adventure/statuses/{sha}","languages_url":"https://api.github.com/repos/satuba/geo-adventure/languages","stargazers_url":"https://api.github.com/repos/satuba/geo-adventure/stargazers","contributors_url":"https://api.github.com/repos/satuba/geo-adventure/contributors","subscribers_url":"https://api.github.com/repos/satuba/geo-adventure/subscribers","subscription_url":"https://api.github.com/repos/satuba/geo-adventure/subscription","commits_url":"https://api.github.com/repos/satuba/geo-adventure/commits{/sha}","git_commits_url":"https://api.github.com/repos/satuba/geo-adventure/git/commits{/sha}","comments_url":"https://api.github.com/repos/satuba/geo-adventure/comments{/number}","issue_comment_url":"https://api.github.com/repos/satuba/geo-adventure/issues/comments{/number}","contents_url":"https://api.github.com/repos/satuba/geo-adventure/contents/{+path}","compare_url":"https://api.github.com/repos/satuba/geo-adventure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/satuba/geo-adventure/merges","archive_url":"https://api.github.com/repos/satuba/geo-adventure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/satuba/geo-adventure/downloads","issues_url":"https://api.github.com/repos/satuba/geo-adventure/issues{/number}","pulls_url":"https://api.github.com/repos/satuba/geo-adventure/pulls{/number}","milestones_url":"https://api.github.com/repos/satuba/geo-adventure/milestones{/number}","notifications_url":"https://api.github.com/repos/satuba/geo-adventure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/satuba/geo-adventure/labels{/name}","releases_url":"https://api.github.com/repos/satuba/geo-adventure/releases{/id}","created_at":"2015-05-18T05:03:44Z","updated_at":"2015-05-18T15:23:51Z","pushed_at":"2015-05-18T17:12:11Z","git_url":"git://github.com/satuba/geo-adventure.git","ssh_url":"git@github.com:satuba/geo-adventure.git","clone_url":"https://github.com/satuba/geo-adventure.git","svn_url":"https://github.com/satuba/geo-adventure","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"satuba:master","ref":"master","sha":"2835d4dc4428d31c7b5f00b9f441e9d471524e07","user":{"login":"satuba","id":8252885,"avatar_url":"https://avatars.githubusercontent.com/u/8252885?v=3","gravatar_id":"","url":"https://api.github.com/users/satuba","html_url":"https://github.com/satuba","followers_url":"https://api.github.com/users/satuba/followers","following_url":"https://api.github.com/users/satuba/following{/other_user}","gists_url":"https://api.github.com/users/satuba/gists{/gist_id}","starred_url":"https://api.github.com/users/satuba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satuba/subscriptions","organizations_url":"https://api.github.com/users/satuba/orgs","repos_url":"https://api.github.com/users/satuba/repos","events_url":"https://api.github.com/users/satuba/events{/privacy}","received_events_url":"https://api.github.com/users/satuba/received_events","type":"User","site_admin":false},"repo":{"id":35797772,"name":"geo-adventure","full_name":"satuba/geo-adventure","owner":{"login":"satuba","id":8252885,"avatar_url":"https://avatars.githubusercontent.com/u/8252885?v=3","gravatar_id":"","url":"https://api.github.com/users/satuba","html_url":"https://github.com/satuba","followers_url":"https://api.github.com/users/satuba/followers","following_url":"https://api.github.com/users/satuba/following{/other_user}","gists_url":"https://api.github.com/users/satuba/gists{/gist_id}","starred_url":"https://api.github.com/users/satuba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satuba/subscriptions","organizations_url":"https://api.github.com/users/satuba/orgs","repos_url":"https://api.github.com/users/satuba/repos","events_url":"https://api.github.com/users/satuba/events{/privacy}","received_events_url":"https://api.github.com/users/satuba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/satuba/geo-adventure","description":"","fork":false,"url":"https://api.github.com/repos/satuba/geo-adventure","forks_url":"https://api.github.com/repos/satuba/geo-adventure/forks","keys_url":"https://api.github.com/repos/satuba/geo-adventure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/satuba/geo-adventure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/satuba/geo-adventure/teams","hooks_url":"https://api.github.com/repos/satuba/geo-adventure/hooks","issue_events_url":"https://api.github.com/repos/satuba/geo-adventure/issues/events{/number}","events_url":"https://api.github.com/repos/satuba/geo-adventure/events","assignees_url":"https://api.github.com/repos/satuba/geo-adventure/assignees{/user}","branches_url":"https://api.github.com/repos/satuba/geo-adventure/branches{/branch}","tags_url":"https://api.github.com/repos/satuba/geo-adventure/tags","blobs_url":"https://api.github.com/repos/satuba/geo-adventure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/satuba/geo-adventure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/satuba/geo-adventure/git/refs{/sha}","trees_url":"https://api.github.com/repos/satuba/geo-adventure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/satuba/geo-adventure/statuses/{sha}","languages_url":"https://api.github.com/repos/satuba/geo-adventure/languages","stargazers_url":"https://api.github.com/repos/satuba/geo-adventure/stargazers","contributors_url":"https://api.github.com/repos/satuba/geo-adventure/contributors","subscribers_url":"https://api.github.com/repos/satuba/geo-adventure/subscribers","subscription_url":"https://api.github.com/repos/satuba/geo-adventure/subscription","commits_url":"https://api.github.com/repos/satuba/geo-adventure/commits{/sha}","git_commits_url":"https://api.github.com/repos/satuba/geo-adventure/git/commits{/sha}","comments_url":"https://api.github.com/repos/satuba/geo-adventure/comments{/number}","issue_comment_url":"https://api.github.com/repos/satuba/geo-adventure/issues/comments{/number}","contents_url":"https://api.github.com/repos/satuba/geo-adventure/contents/{+path}","compare_url":"https://api.github.com/repos/satuba/geo-adventure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/satuba/geo-adventure/merges","archive_url":"https://api.github.com/repos/satuba/geo-adventure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/satuba/geo-adventure/downloads","issues_url":"https://api.github.com/repos/satuba/geo-adventure/issues{/number}","pulls_url":"https://api.github.com/repos/satuba/geo-adventure/pulls{/number}","milestones_url":"https://api.github.com/repos/satuba/geo-adventure/milestones{/number}","notifications_url":"https://api.github.com/repos/satuba/geo-adventure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/satuba/geo-adventure/labels{/name}","releases_url":"https://api.github.com/repos/satuba/geo-adventure/releases{/id}","created_at":"2015-05-18T05:03:44Z","updated_at":"2015-05-18T15:23:51Z","pushed_at":"2015-05-18T17:12:11Z","git_url":"git://github.com/satuba/geo-adventure.git","ssh_url":"git@github.com:satuba/geo-adventure.git","clone_url":"https://github.com/satuba/geo-adventure.git","svn_url":"https://github.com/satuba/geo-adventure","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/satuba/geo-adventure/pulls/2"},"html":{"href":"https://github.com/satuba/geo-adventure/pull/2"},"issue":{"href":"https://api.github.com/repos/satuba/geo-adventure/issues/2"},"comments":{"href":"https://api.github.com/repos/satuba/geo-adventure/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/satuba/geo-adventure/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/satuba/geo-adventure/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/satuba/geo-adventure/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/satuba/geo-adventure/statuses/0826a59a0a2eed65ade3963c6c1a3522cebd9916"}}}}