{"action":"opened","number":18,"pull_request":{"url":"https://api.github.com/repos/jmhill/spotify-recommend-2/pulls/18","id":70136064,"html_url":"https://github.com/jmhill/spotify-recommend-2/pull/18","diff_url":"https://github.com/jmhill/spotify-recommend-2/pull/18.diff","patch_url":"https://github.com/jmhill/spotify-recommend-2/pull/18.patch","issue_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/issues/18","number":18,"state":"open","locked":false,"title":"Create standard routing structure for api server","user":{"login":"jmhill","id":6236708,"avatar_url":"https://avatars.githubusercontent.com/u/6236708?v=3","gravatar_id":"","url":"https://api.github.com/users/jmhill","html_url":"https://github.com/jmhill","followers_url":"https://api.github.com/users/jmhill/followers","following_url":"https://api.github.com/users/jmhill/following{/other_user}","gists_url":"https://api.github.com/users/jmhill/gists{/gist_id}","starred_url":"https://api.github.com/users/jmhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmhill/subscriptions","organizations_url":"https://api.github.com/users/jmhill/orgs","repos_url":"https://api.github.com/users/jmhill/repos","events_url":"https://api.github.com/users/jmhill/events{/privacy}","received_events_url":"https://api.github.com/users/jmhill/received_events","type":"User","site_admin":false},"body":"To further break out the server express app logic, will use express's\r\nRouter class to create routers for each endpoint. The endpoints will be\r\nregistered with app.use within /api/index.js, and then the index is simply required within the express config file.\r\n\r\nServices for querying external apis will now reside in a top level directory '/services'.","created_at":"2016-05-15T22:49:03Z","updated_at":"2016-05-15T22:49:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/pulls/18/commits","review_comments_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/pulls/18/comments","review_comment_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/issues/18/comments","statuses_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/statuses/f1052ad0355ec13931208dae83246b6b25bcd913","head":{"label":"jmhill:15-express-router","ref":"15-express-router","sha":"f1052ad0355ec13931208dae83246b6b25bcd913","user":{"login":"jmhill","id":6236708,"avatar_url":"https://avatars.githubusercontent.com/u/6236708?v=3","gravatar_id":"","url":"https://api.github.com/users/jmhill","html_url":"https://github.com/jmhill","followers_url":"https://api.github.com/users/jmhill/followers","following_url":"https://api.github.com/users/jmhill/following{/other_user}","gists_url":"https://api.github.com/users/jmhill/gists{/gist_id}","starred_url":"https://api.github.com/users/jmhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmhill/subscriptions","organizations_url":"https://api.github.com/users/jmhill/orgs","repos_url":"https://api.github.com/users/jmhill/repos","events_url":"https://api.github.com/users/jmhill/events{/privacy}","received_events_url":"https://api.github.com/users/jmhill/received_events","type":"User","site_admin":false},"repo":{"id":36688601,"name":"spotify-recommend-2","full_name":"jmhill/spotify-recommend-2","owner":{"login":"jmhill","id":6236708,"avatar_url":"https://avatars.githubusercontent.com/u/6236708?v=3","gravatar_id":"","url":"https://api.github.com/users/jmhill","html_url":"https://github.com/jmhill","followers_url":"https://api.github.com/users/jmhill/followers","following_url":"https://api.github.com/users/jmhill/following{/other_user}","gists_url":"https://api.github.com/users/jmhill/gists{/gist_id}","starred_url":"https://api.github.com/users/jmhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmhill/subscriptions","organizations_url":"https://api.github.com/users/jmhill/orgs","repos_url":"https://api.github.com/users/jmhill/repos","events_url":"https://api.github.com/users/jmhill/events{/privacy}","received_events_url":"https://api.github.com/users/jmhill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmhill/spotify-recommend-2","description":"Demo project for Thinkful node.js course","fork":false,"url":"https://api.github.com/repos/jmhill/spotify-recommend-2","forks_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/forks","keys_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/teams","hooks_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/hooks","issue_events_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/issues/events{/number}","events_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/events","assignees_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/assignees{/user}","branches_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/branches{/branch}","tags_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/tags","blobs_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/statuses/{sha}","languages_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/languages","stargazers_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/stargazers","contributors_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/contributors","subscribers_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/subscribers","subscription_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/subscription","commits_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/contents/{+path}","compare_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/merges","archive_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/downloads","issues_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/issues{/number}","pulls_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/pulls{/number}","milestones_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/milestones{/number}","notifications_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/labels{/name}","releases_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/releases{/id}","deployments_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/deployments","created_at":"2015-06-01T21:00:00Z","updated_at":"2016-05-07T15:53:24Z","pushed_at":"2016-05-15T22:49:04Z","git_url":"git://github.com/jmhill/spotify-recommend-2.git","ssh_url":"git@github.com:jmhill/spotify-recommend-2.git","clone_url":"https://github.com/jmhill/spotify-recommend-2.git","svn_url":"https://github.com/jmhill/spotify-recommend-2","homepage":null,"size":173,"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":"development"}},"base":{"label":"jmhill:development","ref":"development","sha":"c928d6356fe6151ed8ad56291778ab5513df7263","user":{"login":"jmhill","id":6236708,"avatar_url":"https://avatars.githubusercontent.com/u/6236708?v=3","gravatar_id":"","url":"https://api.github.com/users/jmhill","html_url":"https://github.com/jmhill","followers_url":"https://api.github.com/users/jmhill/followers","following_url":"https://api.github.com/users/jmhill/following{/other_user}","gists_url":"https://api.github.com/users/jmhill/gists{/gist_id}","starred_url":"https://api.github.com/users/jmhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmhill/subscriptions","organizations_url":"https://api.github.com/users/jmhill/orgs","repos_url":"https://api.github.com/users/jmhill/repos","events_url":"https://api.github.com/users/jmhill/events{/privacy}","received_events_url":"https://api.github.com/users/jmhill/received_events","type":"User","site_admin":false},"repo":{"id":36688601,"name":"spotify-recommend-2","full_name":"jmhill/spotify-recommend-2","owner":{"login":"jmhill","id":6236708,"avatar_url":"https://avatars.githubusercontent.com/u/6236708?v=3","gravatar_id":"","url":"https://api.github.com/users/jmhill","html_url":"https://github.com/jmhill","followers_url":"https://api.github.com/users/jmhill/followers","following_url":"https://api.github.com/users/jmhill/following{/other_user}","gists_url":"https://api.github.com/users/jmhill/gists{/gist_id}","starred_url":"https://api.github.com/users/jmhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmhill/subscriptions","organizations_url":"https://api.github.com/users/jmhill/orgs","repos_url":"https://api.github.com/users/jmhill/repos","events_url":"https://api.github.com/users/jmhill/events{/privacy}","received_events_url":"https://api.github.com/users/jmhill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmhill/spotify-recommend-2","description":"Demo project for Thinkful node.js course","fork":false,"url":"https://api.github.com/repos/jmhill/spotify-recommend-2","forks_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/forks","keys_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/teams","hooks_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/hooks","issue_events_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/issues/events{/number}","events_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/events","assignees_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/assignees{/user}","branches_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/branches{/branch}","tags_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/tags","blobs_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/statuses/{sha}","languages_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/languages","stargazers_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/stargazers","contributors_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/contributors","subscribers_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/subscribers","subscription_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/subscription","commits_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/contents/{+path}","compare_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/merges","archive_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/downloads","issues_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/issues{/number}","pulls_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/pulls{/number}","milestones_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/milestones{/number}","notifications_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/labels{/name}","releases_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/releases{/id}","deployments_url":"https://api.github.com/repos/jmhill/spotify-recommend-2/deployments","created_at":"2015-06-01T21:00:00Z","updated_at":"2016-05-07T15:53:24Z","pushed_at":"2016-05-15T22:49:04Z","git_url":"git://github.com/jmhill/spotify-recommend-2.git","ssh_url":"git@github.com:jmhill/spotify-recommend-2.git","clone_url":"https://github.com/jmhill/spotify-recommend-2.git","svn_url":"https://github.com/jmhill/spotify-recommend-2","homepage":null,"size":173,"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":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/jmhill/spotify-recommend-2/pulls/18"},"html":{"href":"https://github.com/jmhill/spotify-recommend-2/pull/18"},"issue":{"href":"https://api.github.com/repos/jmhill/spotify-recommend-2/issues/18"},"comments":{"href":"https://api.github.com/repos/jmhill/spotify-recommend-2/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/jmhill/spotify-recommend-2/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/jmhill/spotify-recommend-2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jmhill/spotify-recommend-2/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/jmhill/spotify-recommend-2/statuses/f1052ad0355ec13931208dae83246b6b25bcd913"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":95,"deletions":72,"changed_files":5}}