{"action":"closed","number":25,"pull_request":{"url":"https://api.github.com/repos/tinylib/synapse/pulls/25","id":40841311,"html_url":"https://github.com/tinylib/synapse/pull/25","diff_url":"https://github.com/tinylib/synapse/pull/25.diff","patch_url":"https://github.com/tinylib/synapse/pull/25.patch","issue_url":"https://api.github.com/repos/tinylib/synapse/issues/25","number":25,"state":"closed","locked":false,"title":"Simplify routing - use a table","user":{"login":"philhofer","id":2940902,"avatar_url":"https://avatars.githubusercontent.com/u/2940902?v=3","gravatar_id":"","url":"https://api.github.com/users/philhofer","html_url":"https://github.com/philhofer","followers_url":"https://api.github.com/users/philhofer/followers","following_url":"https://api.github.com/users/philhofer/following{/other_user}","gists_url":"https://api.github.com/users/philhofer/gists{/gist_id}","starred_url":"https://api.github.com/users/philhofer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philhofer/subscriptions","organizations_url":"https://api.github.com/users/philhofer/orgs","repos_url":"https://api.github.com/users/philhofer/repos","events_url":"https://api.github.com/users/philhofer/events{/privacy}","received_events_url":"https://api.github.com/users/philhofer/received_events","type":"User","site_admin":false},"body":"Routes go from being strings to numbers. Perhaps this is less flexible, but it fits with the minimalist ethos of the project. (This also cuts an allocation and a hashmap lookup on the server side.)\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/tinylib/synapse/25)\n<!-- Reviewable:end -->\n","created_at":"2015-07-25T18:42:59Z","updated_at":"2015-07-28T04:08:02Z","closed_at":"2015-07-28T04:08:02Z","merged_at":"2015-07-28T04:08:02Z","merge_commit_sha":"402be7a5962503dc2b6e5902e7489fba6ae73e23","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tinylib/synapse/pulls/25/commits","review_comments_url":"https://api.github.com/repos/tinylib/synapse/pulls/25/comments","review_comment_url":"https://api.github.com/repos/tinylib/synapse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tinylib/synapse/issues/25/comments","statuses_url":"https://api.github.com/repos/tinylib/synapse/statuses/c5237d46989fe6c2e9ed63810ff5fa8ae2479028","head":{"label":"tinylib:ivec","ref":"ivec","sha":"c5237d46989fe6c2e9ed63810ff5fa8ae2479028","user":{"login":"tinylib","id":10499993,"avatar_url":"https://avatars.githubusercontent.com/u/10499993?v=3","gravatar_id":"","url":"https://api.github.com/users/tinylib","html_url":"https://github.com/tinylib","followers_url":"https://api.github.com/users/tinylib/followers","following_url":"https://api.github.com/users/tinylib/following{/other_user}","gists_url":"https://api.github.com/users/tinylib/gists{/gist_id}","starred_url":"https://api.github.com/users/tinylib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinylib/subscriptions","organizations_url":"https://api.github.com/users/tinylib/orgs","repos_url":"https://api.github.com/users/tinylib/repos","events_url":"https://api.github.com/users/tinylib/events{/privacy}","received_events_url":"https://api.github.com/users/tinylib/received_events","type":"Organization","site_admin":false},"repo":{"id":24542400,"name":"synapse","full_name":"tinylib/synapse","owner":{"login":"tinylib","id":10499993,"avatar_url":"https://avatars.githubusercontent.com/u/10499993?v=3","gravatar_id":"","url":"https://api.github.com/users/tinylib","html_url":"https://github.com/tinylib","followers_url":"https://api.github.com/users/tinylib/followers","following_url":"https://api.github.com/users/tinylib/following{/other_user}","gists_url":"https://api.github.com/users/tinylib/gists{/gist_id}","starred_url":"https://api.github.com/users/tinylib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinylib/subscriptions","organizations_url":"https://api.github.com/users/tinylib/orgs","repos_url":"https://api.github.com/users/tinylib/repos","events_url":"https://api.github.com/users/tinylib/events{/privacy}","received_events_url":"https://api.github.com/users/tinylib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tinylib/synapse","description":"Simple & Performant RPC","fork":false,"url":"https://api.github.com/repos/tinylib/synapse","forks_url":"https://api.github.com/repos/tinylib/synapse/forks","keys_url":"https://api.github.com/repos/tinylib/synapse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tinylib/synapse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tinylib/synapse/teams","hooks_url":"https://api.github.com/repos/tinylib/synapse/hooks","issue_events_url":"https://api.github.com/repos/tinylib/synapse/issues/events{/number}","events_url":"https://api.github.com/repos/tinylib/synapse/events","assignees_url":"https://api.github.com/repos/tinylib/synapse/assignees{/user}","branches_url":"https://api.github.com/repos/tinylib/synapse/branches{/branch}","tags_url":"https://api.github.com/repos/tinylib/synapse/tags","blobs_url":"https://api.github.com/repos/tinylib/synapse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tinylib/synapse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tinylib/synapse/git/refs{/sha}","trees_url":"https://api.github.com/repos/tinylib/synapse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tinylib/synapse/statuses/{sha}","languages_url":"https://api.github.com/repos/tinylib/synapse/languages","stargazers_url":"https://api.github.com/repos/tinylib/synapse/stargazers","contributors_url":"https://api.github.com/repos/tinylib/synapse/contributors","subscribers_url":"https://api.github.com/repos/tinylib/synapse/subscribers","subscription_url":"https://api.github.com/repos/tinylib/synapse/subscription","commits_url":"https://api.github.com/repos/tinylib/synapse/commits{/sha}","git_commits_url":"https://api.github.com/repos/tinylib/synapse/git/commits{/sha}","comments_url":"https://api.github.com/repos/tinylib/synapse/comments{/number}","issue_comment_url":"https://api.github.com/repos/tinylib/synapse/issues/comments{/number}","contents_url":"https://api.github.com/repos/tinylib/synapse/contents/{+path}","compare_url":"https://api.github.com/repos/tinylib/synapse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tinylib/synapse/merges","archive_url":"https://api.github.com/repos/tinylib/synapse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tinylib/synapse/downloads","issues_url":"https://api.github.com/repos/tinylib/synapse/issues{/number}","pulls_url":"https://api.github.com/repos/tinylib/synapse/pulls{/number}","milestones_url":"https://api.github.com/repos/tinylib/synapse/milestones{/number}","notifications_url":"https://api.github.com/repos/tinylib/synapse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tinylib/synapse/labels{/name}","releases_url":"https://api.github.com/repos/tinylib/synapse/releases{/id}","created_at":"2014-09-27T20:46:36Z","updated_at":"2015-07-21T07:50:29Z","pushed_at":"2015-07-28T04:08:02Z","git_url":"git://github.com/tinylib/synapse.git","ssh_url":"git@github.com:tinylib/synapse.git","clone_url":"https://github.com/tinylib/synapse.git","svn_url":"https://github.com/tinylib/synapse","homepage":"","size":666,"stargazers_count":51,"watchers_count":51,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":51,"default_branch":"master"}},"base":{"label":"tinylib:master","ref":"master","sha":"6f3c63f66d2ff190b4b223546c57d018cbef19ea","user":{"login":"tinylib","id":10499993,"avatar_url":"https://avatars.githubusercontent.com/u/10499993?v=3","gravatar_id":"","url":"https://api.github.com/users/tinylib","html_url":"https://github.com/tinylib","followers_url":"https://api.github.com/users/tinylib/followers","following_url":"https://api.github.com/users/tinylib/following{/other_user}","gists_url":"https://api.github.com/users/tinylib/gists{/gist_id}","starred_url":"https://api.github.com/users/tinylib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinylib/subscriptions","organizations_url":"https://api.github.com/users/tinylib/orgs","repos_url":"https://api.github.com/users/tinylib/repos","events_url":"https://api.github.com/users/tinylib/events{/privacy}","received_events_url":"https://api.github.com/users/tinylib/received_events","type":"Organization","site_admin":false},"repo":{"id":24542400,"name":"synapse","full_name":"tinylib/synapse","owner":{"login":"tinylib","id":10499993,"avatar_url":"https://avatars.githubusercontent.com/u/10499993?v=3","gravatar_id":"","url":"https://api.github.com/users/tinylib","html_url":"https://github.com/tinylib","followers_url":"https://api.github.com/users/tinylib/followers","following_url":"https://api.github.com/users/tinylib/following{/other_user}","gists_url":"https://api.github.com/users/tinylib/gists{/gist_id}","starred_url":"https://api.github.com/users/tinylib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinylib/subscriptions","organizations_url":"https://api.github.com/users/tinylib/orgs","repos_url":"https://api.github.com/users/tinylib/repos","events_url":"https://api.github.com/users/tinylib/events{/privacy}","received_events_url":"https://api.github.com/users/tinylib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tinylib/synapse","description":"Simple & Performant RPC","fork":false,"url":"https://api.github.com/repos/tinylib/synapse","forks_url":"https://api.github.com/repos/tinylib/synapse/forks","keys_url":"https://api.github.com/repos/tinylib/synapse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tinylib/synapse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tinylib/synapse/teams","hooks_url":"https://api.github.com/repos/tinylib/synapse/hooks","issue_events_url":"https://api.github.com/repos/tinylib/synapse/issues/events{/number}","events_url":"https://api.github.com/repos/tinylib/synapse/events","assignees_url":"https://api.github.com/repos/tinylib/synapse/assignees{/user}","branches_url":"https://api.github.com/repos/tinylib/synapse/branches{/branch}","tags_url":"https://api.github.com/repos/tinylib/synapse/tags","blobs_url":"https://api.github.com/repos/tinylib/synapse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tinylib/synapse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tinylib/synapse/git/refs{/sha}","trees_url":"https://api.github.com/repos/tinylib/synapse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tinylib/synapse/statuses/{sha}","languages_url":"https://api.github.com/repos/tinylib/synapse/languages","stargazers_url":"https://api.github.com/repos/tinylib/synapse/stargazers","contributors_url":"https://api.github.com/repos/tinylib/synapse/contributors","subscribers_url":"https://api.github.com/repos/tinylib/synapse/subscribers","subscription_url":"https://api.github.com/repos/tinylib/synapse/subscription","commits_url":"https://api.github.com/repos/tinylib/synapse/commits{/sha}","git_commits_url":"https://api.github.com/repos/tinylib/synapse/git/commits{/sha}","comments_url":"https://api.github.com/repos/tinylib/synapse/comments{/number}","issue_comment_url":"https://api.github.com/repos/tinylib/synapse/issues/comments{/number}","contents_url":"https://api.github.com/repos/tinylib/synapse/contents/{+path}","compare_url":"https://api.github.com/repos/tinylib/synapse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tinylib/synapse/merges","archive_url":"https://api.github.com/repos/tinylib/synapse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tinylib/synapse/downloads","issues_url":"https://api.github.com/repos/tinylib/synapse/issues{/number}","pulls_url":"https://api.github.com/repos/tinylib/synapse/pulls{/number}","milestones_url":"https://api.github.com/repos/tinylib/synapse/milestones{/number}","notifications_url":"https://api.github.com/repos/tinylib/synapse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tinylib/synapse/labels{/name}","releases_url":"https://api.github.com/repos/tinylib/synapse/releases{/id}","created_at":"2014-09-27T20:46:36Z","updated_at":"2015-07-21T07:50:29Z","pushed_at":"2015-07-28T04:08:02Z","git_url":"git://github.com/tinylib/synapse.git","ssh_url":"git@github.com:tinylib/synapse.git","clone_url":"https://github.com/tinylib/synapse.git","svn_url":"https://github.com/tinylib/synapse","homepage":"","size":666,"stargazers_count":51,"watchers_count":51,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tinylib/synapse/pulls/25"},"html":{"href":"https://github.com/tinylib/synapse/pull/25"},"issue":{"href":"https://api.github.com/repos/tinylib/synapse/issues/25"},"comments":{"href":"https://api.github.com/repos/tinylib/synapse/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/tinylib/synapse/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/tinylib/synapse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tinylib/synapse/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/tinylib/synapse/statuses/c5237d46989fe6c2e9ed63810ff5fa8ae2479028"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"philhofer","id":2940902,"avatar_url":"https://avatars.githubusercontent.com/u/2940902?v=3","gravatar_id":"","url":"https://api.github.com/users/philhofer","html_url":"https://github.com/philhofer","followers_url":"https://api.github.com/users/philhofer/followers","following_url":"https://api.github.com/users/philhofer/following{/other_user}","gists_url":"https://api.github.com/users/philhofer/gists{/gist_id}","starred_url":"https://api.github.com/users/philhofer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philhofer/subscriptions","organizations_url":"https://api.github.com/users/philhofer/orgs","repos_url":"https://api.github.com/users/philhofer/repos","events_url":"https://api.github.com/users/philhofer/events{/privacy}","received_events_url":"https://api.github.com/users/philhofer/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":180,"deletions":193,"changed_files":15}}