{"action":"created","comment":{"url":"https://api.github.com/repos/fastify/fastify-swagger/pulls/comments/183227946","pull_request_review_id":114192087,"id":183227946,"diff_hunk":"@@ -25,16 +26,16 @@ function fastifySwagger (fastify, opts, next) {\n   })\n \n   fastify.route({\n-    url: '/documentation',\n+    url: `${routePrefix}`,\n     method: 'GET',\n     schema: { hide: true },\n-    handler: (request, reply) => reply.redirect('./documentation/')\n+    handler: (request, reply) => reply.redirect(`.${routePrefix}/`)","path":"routes.js","position":29,"original_position":29,"commit_id":"d540e5993ec435a1ead2d0b8e7457cc1b98cff18","original_commit_id":"d540e5993ec435a1ead2d0b8e7457cc1b98cff18","user":{"login":"mcollina","id":52195,"avatar_url":"https://avatars0.githubusercontent.com/u/52195?v=4","gravatar_id":"","url":"https://api.github.com/users/mcollina","html_url":"https://github.com/mcollina","followers_url":"https://api.github.com/users/mcollina/followers","following_url":"https://api.github.com/users/mcollina/following{/other_user}","gists_url":"https://api.github.com/users/mcollina/gists{/gist_id}","starred_url":"https://api.github.com/users/mcollina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcollina/subscriptions","organizations_url":"https://api.github.com/users/mcollina/orgs","repos_url":"https://api.github.com/users/mcollina/repos","events_url":"https://api.github.com/users/mcollina/events{/privacy}","received_events_url":"https://api.github.com/users/mcollina/received_events","type":"User","site_admin":false},"body":"I'm not 100% sure how `reply.redirect()` works with the prefix. Open an issue on fastify if it does not work.","created_at":"2018-04-22T07:26:29Z","updated_at":"2018-04-22T07:26:59Z","html_url":"https://github.com/fastify/fastify-swagger/pull/56#discussion_r183227946","pull_request_url":"https://api.github.com/repos/fastify/fastify-swagger/pulls/56","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/fastify/fastify-swagger/pulls/comments/183227946"},"html":{"href":"https://github.com/fastify/fastify-swagger/pull/56#discussion_r183227946"},"pull_request":{"href":"https://api.github.com/repos/fastify/fastify-swagger/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/fastify/fastify-swagger/pulls/56","id":183252084,"html_url":"https://github.com/fastify/fastify-swagger/pull/56","diff_url":"https://github.com/fastify/fastify-swagger/pull/56.diff","patch_url":"https://github.com/fastify/fastify-swagger/pull/56.patch","issue_url":"https://api.github.com/repos/fastify/fastify-swagger/issues/56","number":56,"state":"open","locked":false,"title":"adding the ability to change swagger url","user":{"login":"doron2402","id":2269831,"avatar_url":"https://avatars3.githubusercontent.com/u/2269831?v=4","gravatar_id":"","url":"https://api.github.com/users/doron2402","html_url":"https://github.com/doron2402","followers_url":"https://api.github.com/users/doron2402/followers","following_url":"https://api.github.com/users/doron2402/following{/other_user}","gists_url":"https://api.github.com/users/doron2402/gists{/gist_id}","starred_url":"https://api.github.com/users/doron2402/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doron2402/subscriptions","organizations_url":"https://api.github.com/users/doron2402/orgs","repos_url":"https://api.github.com/users/doron2402/repos","events_url":"https://api.github.com/users/doron2402/events{/privacy}","received_events_url":"https://api.github.com/users/doron2402/received_events","type":"User","site_admin":false},"body":"- Adding the ability to customize the swagger end-point by passing `routePrefix` \r\n- use `/documentation` by default\r\n\r\n@mcollina ","created_at":"2018-04-22T02:36:23Z","updated_at":"2018-04-22T07:26:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30f5c6885cc196c492a6f2bc9f2b64618d2e71ea","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fastify/fastify-swagger/pulls/56/commits","review_comments_url":"https://api.github.com/repos/fastify/fastify-swagger/pulls/56/comments","review_comment_url":"https://api.github.com/repos/fastify/fastify-swagger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fastify/fastify-swagger/issues/56/comments","statuses_url":"https://api.github.com/repos/fastify/fastify-swagger/statuses/d540e5993ec435a1ead2d0b8e7457cc1b98cff18","head":{"label":"doron2402:master","ref":"master","sha":"d540e5993ec435a1ead2d0b8e7457cc1b98cff18","user":{"login":"doron2402","id":2269831,"avatar_url":"https://avatars3.githubusercontent.com/u/2269831?v=4","gravatar_id":"","url":"https://api.github.com/users/doron2402","html_url":"https://github.com/doron2402","followers_url":"https://api.github.com/users/doron2402/followers","following_url":"https://api.github.com/users/doron2402/following{/other_user}","gists_url":"https://api.github.com/users/doron2402/gists{/gist_id}","starred_url":"https://api.github.com/users/doron2402/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doron2402/subscriptions","organizations_url":"https://api.github.com/users/doron2402/orgs","repos_url":"https://api.github.com/users/doron2402/repos","events_url":"https://api.github.com/users/doron2402/events{/privacy}","received_events_url":"https://api.github.com/users/doron2402/received_events","type":"User","site_admin":false},"repo":{"id":130525561,"name":"fastify-swagger","full_name":"doron2402/fastify-swagger","owner":{"login":"doron2402","id":2269831,"avatar_url":"https://avatars3.githubusercontent.com/u/2269831?v=4","gravatar_id":"","url":"https://api.github.com/users/doron2402","html_url":"https://github.com/doron2402","followers_url":"https://api.github.com/users/doron2402/followers","following_url":"https://api.github.com/users/doron2402/following{/other_user}","gists_url":"https://api.github.com/users/doron2402/gists{/gist_id}","starred_url":"https://api.github.com/users/doron2402/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doron2402/subscriptions","organizations_url":"https://api.github.com/users/doron2402/orgs","repos_url":"https://api.github.com/users/doron2402/repos","events_url":"https://api.github.com/users/doron2402/events{/privacy}","received_events_url":"https://api.github.com/users/doron2402/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/doron2402/fastify-swagger","description":"Swagger documentation generator for Fastify","fork":true,"url":"https://api.github.com/repos/doron2402/fastify-swagger","forks_url":"https://api.github.com/repos/doron2402/fastify-swagger/forks","keys_url":"https://api.github.com/repos/doron2402/fastify-swagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doron2402/fastify-swagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doron2402/fastify-swagger/teams","hooks_url":"https://api.github.com/repos/doron2402/fastify-swagger/hooks","issue_events_url":"https://api.github.com/repos/doron2402/fastify-swagger/issues/events{/number}","events_url":"https://api.github.com/repos/doron2402/fastify-swagger/events","assignees_url":"https://api.github.com/repos/doron2402/fastify-swagger/assignees{/user}","branches_url":"https://api.github.com/repos/doron2402/fastify-swagger/branches{/branch}","tags_url":"https://api.github.com/repos/doron2402/fastify-swagger/tags","blobs_url":"https://api.github.com/repos/doron2402/fastify-swagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doron2402/fastify-swagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doron2402/fastify-swagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/doron2402/fastify-swagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doron2402/fastify-swagger/statuses/{sha}","languages_url":"https://api.github.com/repos/doron2402/fastify-swagger/languages","stargazers_url":"https://api.github.com/repos/doron2402/fastify-swagger/stargazers","contributors_url":"https://api.github.com/repos/doron2402/fastify-swagger/contributors","subscribers_url":"https://api.github.com/repos/doron2402/fastify-swagger/subscribers","subscription_url":"https://api.github.com/repos/doron2402/fastify-swagger/subscription","commits_url":"https://api.github.com/repos/doron2402/fastify-swagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/doron2402/fastify-swagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/doron2402/fastify-swagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/doron2402/fastify-swagger/issues/comments{/number}","contents_url":"https://api.github.com/repos/doron2402/fastify-swagger/contents/{+path}","compare_url":"https://api.github.com/repos/doron2402/fastify-swagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doron2402/fastify-swagger/merges","archive_url":"https://api.github.com/repos/doron2402/fastify-swagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doron2402/fastify-swagger/downloads","issues_url":"https://api.github.com/repos/doron2402/fastify-swagger/issues{/number}","pulls_url":"https://api.github.com/repos/doron2402/fastify-swagger/pulls{/number}","milestones_url":"https://api.github.com/repos/doron2402/fastify-swagger/milestones{/number}","notifications_url":"https://api.github.com/repos/doron2402/fastify-swagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doron2402/fastify-swagger/labels{/name}","releases_url":"https://api.github.com/repos/doron2402/fastify-swagger/releases{/id}","deployments_url":"https://api.github.com/repos/doron2402/fastify-swagger/deployments","created_at":"2018-04-22T01:34:02Z","updated_at":"2018-04-22T02:36:07Z","pushed_at":"2018-04-22T02:36:06Z","git_url":"git://github.com/doron2402/fastify-swagger.git","ssh_url":"git@github.com:doron2402/fastify-swagger.git","clone_url":"https://github.com/doron2402/fastify-swagger.git","svn_url":"https://github.com/doron2402/fastify-swagger","homepage":null,"size":4060,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fastify:master","ref":"master","sha":"84b8da283d840d9d0ce622f28102c466d51ca4e1","user":{"login":"fastify","id":24939410,"avatar_url":"https://avatars3.githubusercontent.com/u/24939410?v=4","gravatar_id":"","url":"https://api.github.com/users/fastify","html_url":"https://github.com/fastify","followers_url":"https://api.github.com/users/fastify/followers","following_url":"https://api.github.com/users/fastify/following{/other_user}","gists_url":"https://api.github.com/users/fastify/gists{/gist_id}","starred_url":"https://api.github.com/users/fastify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastify/subscriptions","organizations_url":"https://api.github.com/users/fastify/orgs","repos_url":"https://api.github.com/users/fastify/repos","events_url":"https://api.github.com/users/fastify/events{/privacy}","received_events_url":"https://api.github.com/users/fastify/received_events","type":"Organization","site_admin":false},"repo":{"id":86893425,"name":"fastify-swagger","full_name":"fastify/fastify-swagger","owner":{"login":"fastify","id":24939410,"avatar_url":"https://avatars3.githubusercontent.com/u/24939410?v=4","gravatar_id":"","url":"https://api.github.com/users/fastify","html_url":"https://github.com/fastify","followers_url":"https://api.github.com/users/fastify/followers","following_url":"https://api.github.com/users/fastify/following{/other_user}","gists_url":"https://api.github.com/users/fastify/gists{/gist_id}","starred_url":"https://api.github.com/users/fastify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastify/subscriptions","organizations_url":"https://api.github.com/users/fastify/orgs","repos_url":"https://api.github.com/users/fastify/repos","events_url":"https://api.github.com/users/fastify/events{/privacy}","received_events_url":"https://api.github.com/users/fastify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fastify/fastify-swagger","description":"Swagger documentation generator for Fastify","fork":false,"url":"https://api.github.com/repos/fastify/fastify-swagger","forks_url":"https://api.github.com/repos/fastify/fastify-swagger/forks","keys_url":"https://api.github.com/repos/fastify/fastify-swagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastify/fastify-swagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastify/fastify-swagger/teams","hooks_url":"https://api.github.com/repos/fastify/fastify-swagger/hooks","issue_events_url":"https://api.github.com/repos/fastify/fastify-swagger/issues/events{/number}","events_url":"https://api.github.com/repos/fastify/fastify-swagger/events","assignees_url":"https://api.github.com/repos/fastify/fastify-swagger/assignees{/user}","branches_url":"https://api.github.com/repos/fastify/fastify-swagger/branches{/branch}","tags_url":"https://api.github.com/repos/fastify/fastify-swagger/tags","blobs_url":"https://api.github.com/repos/fastify/fastify-swagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastify/fastify-swagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastify/fastify-swagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastify/fastify-swagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastify/fastify-swagger/statuses/{sha}","languages_url":"https://api.github.com/repos/fastify/fastify-swagger/languages","stargazers_url":"https://api.github.com/repos/fastify/fastify-swagger/stargazers","contributors_url":"https://api.github.com/repos/fastify/fastify-swagger/contributors","subscribers_url":"https://api.github.com/repos/fastify/fastify-swagger/subscribers","subscription_url":"https://api.github.com/repos/fastify/fastify-swagger/subscription","commits_url":"https://api.github.com/repos/fastify/fastify-swagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastify/fastify-swagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastify/fastify-swagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastify/fastify-swagger/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastify/fastify-swagger/contents/{+path}","compare_url":"https://api.github.com/repos/fastify/fastify-swagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastify/fastify-swagger/merges","archive_url":"https://api.github.com/repos/fastify/fastify-swagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastify/fastify-swagger/downloads","issues_url":"https://api.github.com/repos/fastify/fastify-swagger/issues{/number}","pulls_url":"https://api.github.com/repos/fastify/fastify-swagger/pulls{/number}","milestones_url":"https://api.github.com/repos/fastify/fastify-swagger/milestones{/number}","notifications_url":"https://api.github.com/repos/fastify/fastify-swagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastify/fastify-swagger/labels{/name}","releases_url":"https://api.github.com/repos/fastify/fastify-swagger/releases{/id}","deployments_url":"https://api.github.com/repos/fastify/fastify-swagger/deployments","created_at":"2017-04-01T07:24:42Z","updated_at":"2018-04-21T07:26:06Z","pushed_at":"2018-04-22T02:36:24Z","git_url":"git://github.com/fastify/fastify-swagger.git","ssh_url":"git@github.com:fastify/fastify-swagger.git","clone_url":"https://github.com/fastify/fastify-swagger.git","svn_url":"https://github.com/fastify/fastify-swagger","homepage":null,"size":4055,"stargazers_count":43,"watchers_count":43,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":15,"open_issues":5,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fastify/fastify-swagger/pulls/56"},"html":{"href":"https://github.com/fastify/fastify-swagger/pull/56"},"issue":{"href":"https://api.github.com/repos/fastify/fastify-swagger/issues/56"},"comments":{"href":"https://api.github.com/repos/fastify/fastify-swagger/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/fastify/fastify-swagger/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/fastify/fastify-swagger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fastify/fastify-swagger/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/fastify/fastify-swagger/statuses/d540e5993ec435a1ead2d0b8e7457cc1b98cff18"}},"author_association":"NONE"}}
{"actor":{"display_login":"mcollina"}}