{"action":"created","comment":{"url":"https://api.github.com/repos/mbroadst/thinky-rest/pulls/comments/88367163","pull_request_review_id":8943270,"id":88367163,"diff_hunk":"@@ -55,18 +56,21 @@ Controller.prototype.route = function() {\n \n   // NOTE: is there a better place to do this mapping?\n   var pathOptions = endpoint.string;\n-  if (app.name === 'restify') {\n-    if (self.method === 'delete')\n+  if (this.isRestify) {\n+    if (self.method === 'delete') {","path":"lib/controllers/base.js","position":15,"original_position":15,"commit_id":"9b973db6589e23cb6dce0c2ad390b6842dca7fd8","original_commit_id":"9b973db6589e23cb6dce0c2ad390b6842dca7fd8","user":{"login":"tampham47","id":5687992,"avatar_url":"https://avatars.githubusercontent.com/u/5687992?v=3","gravatar_id":"","url":"https://api.github.com/users/tampham47","html_url":"https://github.com/tampham47","followers_url":"https://api.github.com/users/tampham47/followers","following_url":"https://api.github.com/users/tampham47/following{/other_user}","gists_url":"https://api.github.com/users/tampham47/gists{/gist_id}","starred_url":"https://api.github.com/users/tampham47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tampham47/subscriptions","organizations_url":"https://api.github.com/users/tampham47/orgs","repos_url":"https://api.github.com/users/tampham47/repos","events_url":"https://api.github.com/users/tampham47/events{/privacy}","received_events_url":"https://api.github.com/users/tampham47/received_events","type":"User","site_admin":false},"body":"I will think about this, and come back with this issue in this evening, have a great day @mbroadst ","created_at":"2016-11-17T01:02:44Z","updated_at":"2016-11-17T01:02:44Z","html_url":"https://github.com/mbroadst/thinky-rest/pull/4#discussion_r88367163","pull_request_url":"https://api.github.com/repos/mbroadst/thinky-rest/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/mbroadst/thinky-rest/pulls/comments/88367163"},"html":{"href":"https://github.com/mbroadst/thinky-rest/pull/4#discussion_r88367163"},"pull_request":{"href":"https://api.github.com/repos/mbroadst/thinky-rest/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/mbroadst/thinky-rest/pulls/4","id":94079036,"html_url":"https://github.com/mbroadst/thinky-rest/pull/4","diff_url":"https://github.com/mbroadst/thinky-rest/pull/4.diff","patch_url":"https://github.com/mbroadst/thinky-rest/pull/4.patch","issue_url":"https://api.github.com/repos/mbroadst/thinky-rest/issues/4","number":4,"state":"open","locked":false,"title":"Improve mapping method for restify","user":{"login":"tampham47","id":5687992,"avatar_url":"https://avatars.githubusercontent.com/u/5687992?v=3","gravatar_id":"","url":"https://api.github.com/users/tampham47","html_url":"https://github.com/tampham47","followers_url":"https://api.github.com/users/tampham47/followers","following_url":"https://api.github.com/users/tampham47/following{/other_user}","gists_url":"https://api.github.com/users/tampham47/gists{/gist_id}","starred_url":"https://api.github.com/users/tampham47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tampham47/subscriptions","organizations_url":"https://api.github.com/users/tampham47/orgs","repos_url":"https://api.github.com/users/tampham47/repos","events_url":"https://api.github.com/users/tampham47/events{/privacy}","received_events_url":"https://api.github.com/users/tampham47/received_events","type":"User","site_admin":false},"body":"I added new init option `isRestify` to easy mapping http method for restify server.","created_at":"2016-11-17T00:23:28Z","updated_at":"2016-11-17T01:02:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa5c0d2e263741071ad42307458b8856a6b00e03","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mbroadst/thinky-rest/pulls/4/commits","review_comments_url":"https://api.github.com/repos/mbroadst/thinky-rest/pulls/4/comments","review_comment_url":"https://api.github.com/repos/mbroadst/thinky-rest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mbroadst/thinky-rest/issues/4/comments","statuses_url":"https://api.github.com/repos/mbroadst/thinky-rest/statuses/9b973db6589e23cb6dce0c2ad390b6842dca7fd8","head":{"label":"tampham47:master","ref":"master","sha":"9b973db6589e23cb6dce0c2ad390b6842dca7fd8","user":{"login":"tampham47","id":5687992,"avatar_url":"https://avatars.githubusercontent.com/u/5687992?v=3","gravatar_id":"","url":"https://api.github.com/users/tampham47","html_url":"https://github.com/tampham47","followers_url":"https://api.github.com/users/tampham47/followers","following_url":"https://api.github.com/users/tampham47/following{/other_user}","gists_url":"https://api.github.com/users/tampham47/gists{/gist_id}","starred_url":"https://api.github.com/users/tampham47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tampham47/subscriptions","organizations_url":"https://api.github.com/users/tampham47/orgs","repos_url":"https://api.github.com/users/tampham47/repos","events_url":"https://api.github.com/users/tampham47/events{/privacy}","received_events_url":"https://api.github.com/users/tampham47/received_events","type":"User","site_admin":false},"repo":{"id":73774930,"name":"thinky-rest","full_name":"tampham47/thinky-rest","owner":{"login":"tampham47","id":5687992,"avatar_url":"https://avatars.githubusercontent.com/u/5687992?v=3","gravatar_id":"","url":"https://api.github.com/users/tampham47","html_url":"https://github.com/tampham47","followers_url":"https://api.github.com/users/tampham47/followers","following_url":"https://api.github.com/users/tampham47/following{/other_user}","gists_url":"https://api.github.com/users/tampham47/gists{/gist_id}","starred_url":"https://api.github.com/users/tampham47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tampham47/subscriptions","organizations_url":"https://api.github.com/users/tampham47/orgs","repos_url":"https://api.github.com/users/tampham47/repos","events_url":"https://api.github.com/users/tampham47/events{/privacy}","received_events_url":"https://api.github.com/users/tampham47/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tampham47/thinky-rest","description":"Create REST resources and controllers with thinky and Express or Restify","fork":true,"url":"https://api.github.com/repos/tampham47/thinky-rest","forks_url":"https://api.github.com/repos/tampham47/thinky-rest/forks","keys_url":"https://api.github.com/repos/tampham47/thinky-rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tampham47/thinky-rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tampham47/thinky-rest/teams","hooks_url":"https://api.github.com/repos/tampham47/thinky-rest/hooks","issue_events_url":"https://api.github.com/repos/tampham47/thinky-rest/issues/events{/number}","events_url":"https://api.github.com/repos/tampham47/thinky-rest/events","assignees_url":"https://api.github.com/repos/tampham47/thinky-rest/assignees{/user}","branches_url":"https://api.github.com/repos/tampham47/thinky-rest/branches{/branch}","tags_url":"https://api.github.com/repos/tampham47/thinky-rest/tags","blobs_url":"https://api.github.com/repos/tampham47/thinky-rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tampham47/thinky-rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tampham47/thinky-rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/tampham47/thinky-rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tampham47/thinky-rest/statuses/{sha}","languages_url":"https://api.github.com/repos/tampham47/thinky-rest/languages","stargazers_url":"https://api.github.com/repos/tampham47/thinky-rest/stargazers","contributors_url":"https://api.github.com/repos/tampham47/thinky-rest/contributors","subscribers_url":"https://api.github.com/repos/tampham47/thinky-rest/subscribers","subscription_url":"https://api.github.com/repos/tampham47/thinky-rest/subscription","commits_url":"https://api.github.com/repos/tampham47/thinky-rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/tampham47/thinky-rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/tampham47/thinky-rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/tampham47/thinky-rest/issues/comments{/number}","contents_url":"https://api.github.com/repos/tampham47/thinky-rest/contents/{+path}","compare_url":"https://api.github.com/repos/tampham47/thinky-rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tampham47/thinky-rest/merges","archive_url":"https://api.github.com/repos/tampham47/thinky-rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tampham47/thinky-rest/downloads","issues_url":"https://api.github.com/repos/tampham47/thinky-rest/issues{/number}","pulls_url":"https://api.github.com/repos/tampham47/thinky-rest/pulls{/number}","milestones_url":"https://api.github.com/repos/tampham47/thinky-rest/milestones{/number}","notifications_url":"https://api.github.com/repos/tampham47/thinky-rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tampham47/thinky-rest/labels{/name}","releases_url":"https://api.github.com/repos/tampham47/thinky-rest/releases{/id}","deployments_url":"https://api.github.com/repos/tampham47/thinky-rest/deployments","created_at":"2016-11-15T04:06:12Z","updated_at":"2016-11-15T04:06:13Z","pushed_at":"2016-11-17T00:21:15Z","git_url":"git://github.com/tampham47/thinky-rest.git","ssh_url":"git@github.com:tampham47/thinky-rest.git","clone_url":"https://github.com/tampham47/thinky-rest.git","svn_url":"https://github.com/tampham47/thinky-rest","homepage":null,"size":80,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mbroadst:master","ref":"master","sha":"d1eda1dfd3acf897cf2de775d64b40efde5701b9","user":{"login":"mbroadst","id":312966,"avatar_url":"https://avatars.githubusercontent.com/u/312966?v=3","gravatar_id":"","url":"https://api.github.com/users/mbroadst","html_url":"https://github.com/mbroadst","followers_url":"https://api.github.com/users/mbroadst/followers","following_url":"https://api.github.com/users/mbroadst/following{/other_user}","gists_url":"https://api.github.com/users/mbroadst/gists{/gist_id}","starred_url":"https://api.github.com/users/mbroadst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbroadst/subscriptions","organizations_url":"https://api.github.com/users/mbroadst/orgs","repos_url":"https://api.github.com/users/mbroadst/repos","events_url":"https://api.github.com/users/mbroadst/events{/privacy}","received_events_url":"https://api.github.com/users/mbroadst/received_events","type":"User","site_admin":false},"repo":{"id":41098377,"name":"thinky-rest","full_name":"mbroadst/thinky-rest","owner":{"login":"mbroadst","id":312966,"avatar_url":"https://avatars.githubusercontent.com/u/312966?v=3","gravatar_id":"","url":"https://api.github.com/users/mbroadst","html_url":"https://github.com/mbroadst","followers_url":"https://api.github.com/users/mbroadst/followers","following_url":"https://api.github.com/users/mbroadst/following{/other_user}","gists_url":"https://api.github.com/users/mbroadst/gists{/gist_id}","starred_url":"https://api.github.com/users/mbroadst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbroadst/subscriptions","organizations_url":"https://api.github.com/users/mbroadst/orgs","repos_url":"https://api.github.com/users/mbroadst/repos","events_url":"https://api.github.com/users/mbroadst/events{/privacy}","received_events_url":"https://api.github.com/users/mbroadst/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mbroadst/thinky-rest","description":"Create REST resources and controllers with thinky and Express or Restify","fork":false,"url":"https://api.github.com/repos/mbroadst/thinky-rest","forks_url":"https://api.github.com/repos/mbroadst/thinky-rest/forks","keys_url":"https://api.github.com/repos/mbroadst/thinky-rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbroadst/thinky-rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbroadst/thinky-rest/teams","hooks_url":"https://api.github.com/repos/mbroadst/thinky-rest/hooks","issue_events_url":"https://api.github.com/repos/mbroadst/thinky-rest/issues/events{/number}","events_url":"https://api.github.com/repos/mbroadst/thinky-rest/events","assignees_url":"https://api.github.com/repos/mbroadst/thinky-rest/assignees{/user}","branches_url":"https://api.github.com/repos/mbroadst/thinky-rest/branches{/branch}","tags_url":"https://api.github.com/repos/mbroadst/thinky-rest/tags","blobs_url":"https://api.github.com/repos/mbroadst/thinky-rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbroadst/thinky-rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbroadst/thinky-rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbroadst/thinky-rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbroadst/thinky-rest/statuses/{sha}","languages_url":"https://api.github.com/repos/mbroadst/thinky-rest/languages","stargazers_url":"https://api.github.com/repos/mbroadst/thinky-rest/stargazers","contributors_url":"https://api.github.com/repos/mbroadst/thinky-rest/contributors","subscribers_url":"https://api.github.com/repos/mbroadst/thinky-rest/subscribers","subscription_url":"https://api.github.com/repos/mbroadst/thinky-rest/subscription","commits_url":"https://api.github.com/repos/mbroadst/thinky-rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbroadst/thinky-rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbroadst/thinky-rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbroadst/thinky-rest/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbroadst/thinky-rest/contents/{+path}","compare_url":"https://api.github.com/repos/mbroadst/thinky-rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbroadst/thinky-rest/merges","archive_url":"https://api.github.com/repos/mbroadst/thinky-rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbroadst/thinky-rest/downloads","issues_url":"https://api.github.com/repos/mbroadst/thinky-rest/issues{/number}","pulls_url":"https://api.github.com/repos/mbroadst/thinky-rest/pulls{/number}","milestones_url":"https://api.github.com/repos/mbroadst/thinky-rest/milestones{/number}","notifications_url":"https://api.github.com/repos/mbroadst/thinky-rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbroadst/thinky-rest/labels{/name}","releases_url":"https://api.github.com/repos/mbroadst/thinky-rest/releases{/id}","deployments_url":"https://api.github.com/repos/mbroadst/thinky-rest/deployments","created_at":"2015-08-20T13:52:32Z","updated_at":"2016-08-03T13:11:46Z","pushed_at":"2016-11-17T00:23:28Z","git_url":"git://github.com/mbroadst/thinky-rest.git","ssh_url":"git@github.com:mbroadst/thinky-rest.git","clone_url":"https://github.com/mbroadst/thinky-rest.git","svn_url":"https://github.com/mbroadst/thinky-rest","homepage":null,"size":76,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mbroadst/thinky-rest/pulls/4"},"html":{"href":"https://github.com/mbroadst/thinky-rest/pull/4"},"issue":{"href":"https://api.github.com/repos/mbroadst/thinky-rest/issues/4"},"comments":{"href":"https://api.github.com/repos/mbroadst/thinky-rest/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/mbroadst/thinky-rest/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/mbroadst/thinky-rest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mbroadst/thinky-rest/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/mbroadst/thinky-rest/statuses/9b973db6589e23cb6dce0c2ad390b6842dca7fd8"}}}}
{"actor":{"display_login":"tampham47"}}