{"action":"created","comment":{"url":"https://api.github.com/repos/AcklenAvenue/glee2/pulls/comments/217893879","pull_request_review_id":155723447,"id":217893879,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzg5Mzg3OQ==","diff_hunk":"@@ -5,19 +5,23 @@ import { JwtAuthGuard } from './modules/auth/jwt-auth.guard';\n \n async function bootstrap() {\n   const app = await NestFactory.create(AppModule);\n-  app.setGlobalPrefix(process.env.API_VERSION || 'v1');\n-  app.useGlobalGuards(new JwtAuthGuard());\n+  const apiVersionPrefix:string = process.env.API_VERSION || 'v1';\n+  app.setGlobalPrefix(apiVersionPrefix);\n   const options = new DocumentBuilder()\n     .setTitle('Glee2 Boilerplate')\n     .setDescription('The API description')\n     .setVersion('1.0')\n     .addTag('customTag')\n+    .setBasePath(apiVersionPrefix)\n+    .addBearerAuth()\n     .build();\n   const document = SwaggerModule.createDocument(app, options);\n-  SwaggerModule.setup('api', app, document);\n+  \n+  SwaggerModule.setup(`api/${apiVersionPrefix}`, app, document);","path":"src/main.ts","position":19,"original_position":19,"commit_id":"7e8d7676c8814ccb565244f1fc7779dc17572175","original_commit_id":"7e8d7676c8814ccb565244f1fc7779dc17572175","user":{"login":"bsommardahl","id":239087,"node_id":"MDQ6VXNlcjIzOTA4Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/239087?v=4","gravatar_id":"","url":"https://api.github.com/users/bsommardahl","html_url":"https://github.com/bsommardahl","followers_url":"https://api.github.com/users/bsommardahl/followers","following_url":"https://api.github.com/users/bsommardahl/following{/other_user}","gists_url":"https://api.github.com/users/bsommardahl/gists{/gist_id}","starred_url":"https://api.github.com/users/bsommardahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsommardahl/subscriptions","organizations_url":"https://api.github.com/users/bsommardahl/orgs","repos_url":"https://api.github.com/users/bsommardahl/repos","events_url":"https://api.github.com/users/bsommardahl/events{/privacy}","received_events_url":"https://api.github.com/users/bsommardahl/received_events","type":"User","site_admin":false},"body":"Is the \"api\" in this a part of the url?","created_at":"2018-09-15T19:50:20Z","updated_at":"2018-09-15T19:54:36Z","html_url":"https://github.com/AcklenAvenue/glee2/pull/6#discussion_r217893879","pull_request_url":"https://api.github.com/repos/AcklenAvenue/glee2/pulls/6","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/AcklenAvenue/glee2/pulls/comments/217893879"},"html":{"href":"https://github.com/AcklenAvenue/glee2/pull/6#discussion_r217893879"},"pull_request":{"href":"https://api.github.com/repos/AcklenAvenue/glee2/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/AcklenAvenue/glee2/pulls/6","id":215780553,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1NzgwNTUz","html_url":"https://github.com/AcklenAvenue/glee2/pull/6","diff_url":"https://github.com/AcklenAvenue/glee2/pull/6.diff","patch_url":"https://github.com/AcklenAvenue/glee2/pull/6.patch","issue_url":"https://api.github.com/repos/AcklenAvenue/glee2/issues/6","number":6,"state":"open","locked":false,"title":"Small fixes","user":{"login":"cefeboru","id":4528850,"node_id":"MDQ6VXNlcjQ1Mjg4NTA=","avatar_url":"https://avatars2.githubusercontent.com/u/4528850?v=4","gravatar_id":"","url":"https://api.github.com/users/cefeboru","html_url":"https://github.com/cefeboru","followers_url":"https://api.github.com/users/cefeboru/followers","following_url":"https://api.github.com/users/cefeboru/following{/other_user}","gists_url":"https://api.github.com/users/cefeboru/gists{/gist_id}","starred_url":"https://api.github.com/users/cefeboru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cefeboru/subscriptions","organizations_url":"https://api.github.com/users/cefeboru/orgs","repos_url":"https://api.github.com/users/cefeboru/repos","events_url":"https://api.github.com/users/cefeboru/events{/privacy}","received_events_url":"https://api.github.com/users/cefeboru/received_events","type":"User","site_admin":false},"body":"@bsommardahl I removed the global JWT guard, I think its better if we use at controller level so we can have some flexibility (and access the status endpoint freely).\r\n","created_at":"2018-09-15T17:40:19Z","updated_at":"2018-09-15T19:54:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d147f33f8ac13aaa631a893cdc5a79510298a07","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AcklenAvenue/glee2/pulls/6/commits","review_comments_url":"https://api.github.com/repos/AcklenAvenue/glee2/pulls/6/comments","review_comment_url":"https://api.github.com/repos/AcklenAvenue/glee2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AcklenAvenue/glee2/issues/6/comments","statuses_url":"https://api.github.com/repos/AcklenAvenue/glee2/statuses/7e8d7676c8814ccb565244f1fc7779dc17572175","head":{"label":"AcklenAvenue:small-fixes","ref":"small-fixes","sha":"7e8d7676c8814ccb565244f1fc7779dc17572175","user":{"login":"AcklenAvenue","id":861969,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2MTk2OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/861969?v=4","gravatar_id":"","url":"https://api.github.com/users/AcklenAvenue","html_url":"https://github.com/AcklenAvenue","followers_url":"https://api.github.com/users/AcklenAvenue/followers","following_url":"https://api.github.com/users/AcklenAvenue/following{/other_user}","gists_url":"https://api.github.com/users/AcklenAvenue/gists{/gist_id}","starred_url":"https://api.github.com/users/AcklenAvenue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AcklenAvenue/subscriptions","organizations_url":"https://api.github.com/users/AcklenAvenue/orgs","repos_url":"https://api.github.com/users/AcklenAvenue/repos","events_url":"https://api.github.com/users/AcklenAvenue/events{/privacy}","received_events_url":"https://api.github.com/users/AcklenAvenue/received_events","type":"Organization","site_admin":false},"repo":{"id":148845495,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg4NDU0OTU=","name":"glee2","full_name":"AcklenAvenue/glee2","private":false,"owner":{"login":"AcklenAvenue","id":861969,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2MTk2OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/861969?v=4","gravatar_id":"","url":"https://api.github.com/users/AcklenAvenue","html_url":"https://github.com/AcklenAvenue","followers_url":"https://api.github.com/users/AcklenAvenue/followers","following_url":"https://api.github.com/users/AcklenAvenue/following{/other_user}","gists_url":"https://api.github.com/users/AcklenAvenue/gists{/gist_id}","starred_url":"https://api.github.com/users/AcklenAvenue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AcklenAvenue/subscriptions","organizations_url":"https://api.github.com/users/AcklenAvenue/orgs","repos_url":"https://api.github.com/users/AcklenAvenue/repos","events_url":"https://api.github.com/users/AcklenAvenue/events{/privacy}","received_events_url":"https://api.github.com/users/AcklenAvenue/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/AcklenAvenue/glee2","description":null,"fork":false,"url":"https://api.github.com/repos/AcklenAvenue/glee2","forks_url":"https://api.github.com/repos/AcklenAvenue/glee2/forks","keys_url":"https://api.github.com/repos/AcklenAvenue/glee2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AcklenAvenue/glee2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AcklenAvenue/glee2/teams","hooks_url":"https://api.github.com/repos/AcklenAvenue/glee2/hooks","issue_events_url":"https://api.github.com/repos/AcklenAvenue/glee2/issues/events{/number}","events_url":"https://api.github.com/repos/AcklenAvenue/glee2/events","assignees_url":"https://api.github.com/repos/AcklenAvenue/glee2/assignees{/user}","branches_url":"https://api.github.com/repos/AcklenAvenue/glee2/branches{/branch}","tags_url":"https://api.github.com/repos/AcklenAvenue/glee2/tags","blobs_url":"https://api.github.com/repos/AcklenAvenue/glee2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AcklenAvenue/glee2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AcklenAvenue/glee2/git/refs{/sha}","trees_url":"https://api.github.com/repos/AcklenAvenue/glee2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AcklenAvenue/glee2/statuses/{sha}","languages_url":"https://api.github.com/repos/AcklenAvenue/glee2/languages","stargazers_url":"https://api.github.com/repos/AcklenAvenue/glee2/stargazers","contributors_url":"https://api.github.com/repos/AcklenAvenue/glee2/contributors","subscribers_url":"https://api.github.com/repos/AcklenAvenue/glee2/subscribers","subscription_url":"https://api.github.com/repos/AcklenAvenue/glee2/subscription","commits_url":"https://api.github.com/repos/AcklenAvenue/glee2/commits{/sha}","git_commits_url":"https://api.github.com/repos/AcklenAvenue/glee2/git/commits{/sha}","comments_url":"https://api.github.com/repos/AcklenAvenue/glee2/comments{/number}","issue_comment_url":"https://api.github.com/repos/AcklenAvenue/glee2/issues/comments{/number}","contents_url":"https://api.github.com/repos/AcklenAvenue/glee2/contents/{+path}","compare_url":"https://api.github.com/repos/AcklenAvenue/glee2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AcklenAvenue/glee2/merges","archive_url":"https://api.github.com/repos/AcklenAvenue/glee2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AcklenAvenue/glee2/downloads","issues_url":"https://api.github.com/repos/AcklenAvenue/glee2/issues{/number}","pulls_url":"https://api.github.com/repos/AcklenAvenue/glee2/pulls{/number}","milestones_url":"https://api.github.com/repos/AcklenAvenue/glee2/milestones{/number}","notifications_url":"https://api.github.com/repos/AcklenAvenue/glee2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AcklenAvenue/glee2/labels{/name}","releases_url":"https://api.github.com/repos/AcklenAvenue/glee2/releases{/id}","deployments_url":"https://api.github.com/repos/AcklenAvenue/glee2/deployments","created_at":"2018-09-14T21:53:42Z","updated_at":"2018-09-15T17:41:15Z","pushed_at":"2018-09-15T17:41:13Z","git_url":"git://github.com/AcklenAvenue/glee2.git","ssh_url":"git@github.com:AcklenAvenue/glee2.git","clone_url":"https://github.com/AcklenAvenue/glee2.git","svn_url":"https://github.com/AcklenAvenue/glee2","homepage":null,"size":247,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"AcklenAvenue:develop","ref":"develop","sha":"06caddf67827807347437f1b503074f7e2422214","user":{"login":"AcklenAvenue","id":861969,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2MTk2OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/861969?v=4","gravatar_id":"","url":"https://api.github.com/users/AcklenAvenue","html_url":"https://github.com/AcklenAvenue","followers_url":"https://api.github.com/users/AcklenAvenue/followers","following_url":"https://api.github.com/users/AcklenAvenue/following{/other_user}","gists_url":"https://api.github.com/users/AcklenAvenue/gists{/gist_id}","starred_url":"https://api.github.com/users/AcklenAvenue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AcklenAvenue/subscriptions","organizations_url":"https://api.github.com/users/AcklenAvenue/orgs","repos_url":"https://api.github.com/users/AcklenAvenue/repos","events_url":"https://api.github.com/users/AcklenAvenue/events{/privacy}","received_events_url":"https://api.github.com/users/AcklenAvenue/received_events","type":"Organization","site_admin":false},"repo":{"id":148845495,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg4NDU0OTU=","name":"glee2","full_name":"AcklenAvenue/glee2","private":false,"owner":{"login":"AcklenAvenue","id":861969,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2MTk2OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/861969?v=4","gravatar_id":"","url":"https://api.github.com/users/AcklenAvenue","html_url":"https://github.com/AcklenAvenue","followers_url":"https://api.github.com/users/AcklenAvenue/followers","following_url":"https://api.github.com/users/AcklenAvenue/following{/other_user}","gists_url":"https://api.github.com/users/AcklenAvenue/gists{/gist_id}","starred_url":"https://api.github.com/users/AcklenAvenue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AcklenAvenue/subscriptions","organizations_url":"https://api.github.com/users/AcklenAvenue/orgs","repos_url":"https://api.github.com/users/AcklenAvenue/repos","events_url":"https://api.github.com/users/AcklenAvenue/events{/privacy}","received_events_url":"https://api.github.com/users/AcklenAvenue/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/AcklenAvenue/glee2","description":null,"fork":false,"url":"https://api.github.com/repos/AcklenAvenue/glee2","forks_url":"https://api.github.com/repos/AcklenAvenue/glee2/forks","keys_url":"https://api.github.com/repos/AcklenAvenue/glee2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AcklenAvenue/glee2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AcklenAvenue/glee2/teams","hooks_url":"https://api.github.com/repos/AcklenAvenue/glee2/hooks","issue_events_url":"https://api.github.com/repos/AcklenAvenue/glee2/issues/events{/number}","events_url":"https://api.github.com/repos/AcklenAvenue/glee2/events","assignees_url":"https://api.github.com/repos/AcklenAvenue/glee2/assignees{/user}","branches_url":"https://api.github.com/repos/AcklenAvenue/glee2/branches{/branch}","tags_url":"https://api.github.com/repos/AcklenAvenue/glee2/tags","blobs_url":"https://api.github.com/repos/AcklenAvenue/glee2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AcklenAvenue/glee2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AcklenAvenue/glee2/git/refs{/sha}","trees_url":"https://api.github.com/repos/AcklenAvenue/glee2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AcklenAvenue/glee2/statuses/{sha}","languages_url":"https://api.github.com/repos/AcklenAvenue/glee2/languages","stargazers_url":"https://api.github.com/repos/AcklenAvenue/glee2/stargazers","contributors_url":"https://api.github.com/repos/AcklenAvenue/glee2/contributors","subscribers_url":"https://api.github.com/repos/AcklenAvenue/glee2/subscribers","subscription_url":"https://api.github.com/repos/AcklenAvenue/glee2/subscription","commits_url":"https://api.github.com/repos/AcklenAvenue/glee2/commits{/sha}","git_commits_url":"https://api.github.com/repos/AcklenAvenue/glee2/git/commits{/sha}","comments_url":"https://api.github.com/repos/AcklenAvenue/glee2/comments{/number}","issue_comment_url":"https://api.github.com/repos/AcklenAvenue/glee2/issues/comments{/number}","contents_url":"https://api.github.com/repos/AcklenAvenue/glee2/contents/{+path}","compare_url":"https://api.github.com/repos/AcklenAvenue/glee2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AcklenAvenue/glee2/merges","archive_url":"https://api.github.com/repos/AcklenAvenue/glee2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AcklenAvenue/glee2/downloads","issues_url":"https://api.github.com/repos/AcklenAvenue/glee2/issues{/number}","pulls_url":"https://api.github.com/repos/AcklenAvenue/glee2/pulls{/number}","milestones_url":"https://api.github.com/repos/AcklenAvenue/glee2/milestones{/number}","notifications_url":"https://api.github.com/repos/AcklenAvenue/glee2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AcklenAvenue/glee2/labels{/name}","releases_url":"https://api.github.com/repos/AcklenAvenue/glee2/releases{/id}","deployments_url":"https://api.github.com/repos/AcklenAvenue/glee2/deployments","created_at":"2018-09-14T21:53:42Z","updated_at":"2018-09-15T17:41:15Z","pushed_at":"2018-09-15T17:41:13Z","git_url":"git://github.com/AcklenAvenue/glee2.git","ssh_url":"git@github.com:AcklenAvenue/glee2.git","clone_url":"https://github.com/AcklenAvenue/glee2.git","svn_url":"https://github.com/AcklenAvenue/glee2","homepage":null,"size":247,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/AcklenAvenue/glee2/pulls/6"},"html":{"href":"https://github.com/AcklenAvenue/glee2/pull/6"},"issue":{"href":"https://api.github.com/repos/AcklenAvenue/glee2/issues/6"},"comments":{"href":"https://api.github.com/repos/AcklenAvenue/glee2/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/AcklenAvenue/glee2/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/AcklenAvenue/glee2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AcklenAvenue/glee2/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/AcklenAvenue/glee2/statuses/7e8d7676c8814ccb565244f1fc7779dc17572175"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"bsommardahl"}}