{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/origami-image-service/pulls/comments/77818208","id":77818208,"diff_hunk":"@@ -4,16 +4,17 @@ const fs = require('fs');\n const oneWeek = 60 * 60 * 24 * 7;\n \n module.exports = app => {\n-\t// Load the documentation HTML\n-\tconst documentation = fs.readFileSync(`${__dirname}/../../../docs/index.html`, 'utf-8');\n \n \t// v2 documentation page\n \tapp.get('/v2', (request, response) => {\n \t\tresponse.set({\n \t\t\t'Content-Type': 'text/html; charset=utf-8',\n \t\t\t'Cache-Control': `public, stale-while-revalidate=${oneWeek}, max-age=${oneWeek}`\n \t\t});\n-\t\tresponse.send(documentation);\n+\t\tresponse.render('index', {","path":"lib/routes/v2/docs.js","position":14,"original_position":14,"commit_id":"a6d92613803f24ae9c4ec1ccf6190dc4f44a971f","original_commit_id":"a6d92613803f24ae9c4ec1ccf6190dc4f44a971f","user":{"login":"JakeChampion","id":1569131,"avatar_url":"https://avatars.githubusercontent.com/u/1569131?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeChampion","html_url":"https://github.com/JakeChampion","followers_url":"https://api.github.com/users/JakeChampion/followers","following_url":"https://api.github.com/users/JakeChampion/following{/other_user}","gists_url":"https://api.github.com/users/JakeChampion/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeChampion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeChampion/subscriptions","organizations_url":"https://api.github.com/users/JakeChampion/orgs","repos_url":"https://api.github.com/users/JakeChampion/repos","events_url":"https://api.github.com/users/JakeChampion/events{/privacy}","received_events_url":"https://api.github.com/users/JakeChampion/received_events","type":"User","site_admin":false},"body":"👍 ","created_at":"2016-09-07T13:11:42Z","updated_at":"2016-09-07T13:11:42Z","html_url":"https://github.com/Financial-Times/origami-image-service/pull/41#discussion_r77818208","pull_request_url":"https://api.github.com/repos/Financial-Times/origami-image-service/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/origami-image-service/pulls/comments/77818208"},"html":{"href":"https://github.com/Financial-Times/origami-image-service/pull/41#discussion_r77818208"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/origami-image-service/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/origami-image-service/pulls/41","id":84297023,"html_url":"https://github.com/Financial-Times/origami-image-service/pull/41","diff_url":"https://github.com/Financial-Times/origami-image-service/pull/41.diff","patch_url":"https://github.com/Financial-Times/origami-image-service/pull/41.patch","issue_url":"https://api.github.com/repos/Financial-Times/origami-image-service/issues/41","number":41,"state":"open","locked":false,"title":"Add Handlebars support and move docs into a view","user":{"login":"rowanmanning","id":138944,"avatar_url":"https://avatars.githubusercontent.com/u/138944?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmanning","html_url":"https://github.com/rowanmanning","followers_url":"https://api.github.com/users/rowanmanning/followers","following_url":"https://api.github.com/users/rowanmanning/following{/other_user}","gists_url":"https://api.github.com/users/rowanmanning/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmanning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmanning/subscriptions","organizations_url":"https://api.github.com/users/rowanmanning/orgs","repos_url":"https://api.github.com/users/rowanmanning/repos","events_url":"https://api.github.com/users/rowanmanning/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmanning/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-07T13:10:11Z","updated_at":"2016-09-07T13:11:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ff5c3142b1161310a39ec6623e9b51831bcb97c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/origami-image-service/pulls/41/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/origami-image-service/pulls/41/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/origami-image-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/origami-image-service/issues/41/comments","statuses_url":"https://api.github.com/repos/Financial-Times/origami-image-service/statuses/a6d92613803f24ae9c4ec1ccf6190dc4f44a971f","head":{"label":"Financial-Times:handlebars","ref":"handlebars","sha":"a6d92613803f24ae9c4ec1ccf6190dc4f44a971f","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":61795793,"name":"origami-image-service","full_name":"Financial-Times/origami-image-service","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/origami-image-service","description":"Optimises and resize images","fork":false,"url":"https://api.github.com/repos/Financial-Times/origami-image-service","forks_url":"https://api.github.com/repos/Financial-Times/origami-image-service/forks","keys_url":"https://api.github.com/repos/Financial-Times/origami-image-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/origami-image-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/origami-image-service/teams","hooks_url":"https://api.github.com/repos/Financial-Times/origami-image-service/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/origami-image-service/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/origami-image-service/events","assignees_url":"https://api.github.com/repos/Financial-Times/origami-image-service/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/origami-image-service/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/origami-image-service/tags","blobs_url":"https://api.github.com/repos/Financial-Times/origami-image-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/origami-image-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/origami-image-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/origami-image-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/origami-image-service/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/origami-image-service/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/origami-image-service/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/origami-image-service/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/origami-image-service/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/origami-image-service/subscription","commits_url":"https://api.github.com/repos/Financial-Times/origami-image-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/origami-image-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/origami-image-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/origami-image-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/origami-image-service/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/origami-image-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/origami-image-service/merges","archive_url":"https://api.github.com/repos/Financial-Times/origami-image-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/origami-image-service/downloads","issues_url":"https://api.github.com/repos/Financial-Times/origami-image-service/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/origami-image-service/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/origami-image-service/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/origami-image-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/origami-image-service/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/origami-image-service/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/origami-image-service/deployments","created_at":"2016-06-23T10:14:22Z","updated_at":"2016-06-23T10:14:37Z","pushed_at":"2016-09-07T13:10:11Z","git_url":"git://github.com/Financial-Times/origami-image-service.git","ssh_url":"git@github.com:Financial-Times/origami-image-service.git","clone_url":"https://github.com/Financial-Times/origami-image-service.git","svn_url":"https://github.com/Financial-Times/origami-image-service","homepage":null,"size":114,"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":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"48da6b0112c3b71e7d8937aa86901006ab27488f","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":61795793,"name":"origami-image-service","full_name":"Financial-Times/origami-image-service","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/origami-image-service","description":"Optimises and resize images","fork":false,"url":"https://api.github.com/repos/Financial-Times/origami-image-service","forks_url":"https://api.github.com/repos/Financial-Times/origami-image-service/forks","keys_url":"https://api.github.com/repos/Financial-Times/origami-image-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/origami-image-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/origami-image-service/teams","hooks_url":"https://api.github.com/repos/Financial-Times/origami-image-service/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/origami-image-service/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/origami-image-service/events","assignees_url":"https://api.github.com/repos/Financial-Times/origami-image-service/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/origami-image-service/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/origami-image-service/tags","blobs_url":"https://api.github.com/repos/Financial-Times/origami-image-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/origami-image-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/origami-image-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/origami-image-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/origami-image-service/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/origami-image-service/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/origami-image-service/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/origami-image-service/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/origami-image-service/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/origami-image-service/subscription","commits_url":"https://api.github.com/repos/Financial-Times/origami-image-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/origami-image-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/origami-image-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/origami-image-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/origami-image-service/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/origami-image-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/origami-image-service/merges","archive_url":"https://api.github.com/repos/Financial-Times/origami-image-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/origami-image-service/downloads","issues_url":"https://api.github.com/repos/Financial-Times/origami-image-service/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/origami-image-service/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/origami-image-service/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/origami-image-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/origami-image-service/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/origami-image-service/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/origami-image-service/deployments","created_at":"2016-06-23T10:14:22Z","updated_at":"2016-06-23T10:14:37Z","pushed_at":"2016-09-07T13:10:11Z","git_url":"git://github.com/Financial-Times/origami-image-service.git","ssh_url":"git@github.com:Financial-Times/origami-image-service.git","clone_url":"https://github.com/Financial-Times/origami-image-service.git","svn_url":"https://github.com/Financial-Times/origami-image-service","homepage":null,"size":114,"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":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/origami-image-service/pulls/41"},"html":{"href":"https://github.com/Financial-Times/origami-image-service/pull/41"},"issue":{"href":"https://api.github.com/repos/Financial-Times/origami-image-service/issues/41"},"comments":{"href":"https://api.github.com/repos/Financial-Times/origami-image-service/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/origami-image-service/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/origami-image-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/origami-image-service/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/origami-image-service/statuses/a6d92613803f24ae9c4ec1ccf6190dc4f44a971f"}}}}
{"actor":{"display_login":"JakeChampion"}}