{"action":"created","comment":{"url":"https://api.github.com/repos/odwrtw/polochon/pulls/comments/43112002","id":43112002,"diff_hunk":"@@ -245,7 +246,7 @@ func (a *App) HTTPServer() {\n \ta.logger.Debugf(\"HTTP Server listening on: %s\", addr)\n \n \ta.mux.HandleFunc(\"/movies/slugs\", a.movieSlugs)\n-\ta.mux.HandleFunc(\"/movies/ids\", a.movieIds)\n+\ta.mux.HandleFunc(\"/movies/ids\", token.Wrap(a.tokenList, \"guest\", a.movieIds))","path":"server/http.go","position":13,"original_position":13,"commit_id":"49ae63b8d279d6554405522d08d8acc0a1e689d2","original_commit_id":"49ae63b8d279d6554405522d08d8acc0a1e689d2","user":{"login":"PouuleT","id":743683,"avatar_url":"https://avatars.githubusercontent.com/u/743683?v=3","gravatar_id":"","url":"https://api.github.com/users/PouuleT","html_url":"https://github.com/PouuleT","followers_url":"https://api.github.com/users/PouuleT/followers","following_url":"https://api.github.com/users/PouuleT/following{/other_user}","gists_url":"https://api.github.com/users/PouuleT/gists{/gist_id}","starred_url":"https://api.github.com/users/PouuleT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PouuleT/subscriptions","organizations_url":"https://api.github.com/users/PouuleT/orgs","repos_url":"https://api.github.com/users/PouuleT/repos","events_url":"https://api.github.com/users/PouuleT/events{/privacy}","received_events_url":"https://api.github.com/users/PouuleT/received_events","type":"User","site_admin":false},"body":"Would be better if the role needed for each route is configurable","created_at":"2015-10-27T11:57:22Z","updated_at":"2015-10-27T11:57:22Z","html_url":"https://github.com/odwrtw/polochon/pull/49#discussion_r43112002","pull_request_url":"https://api.github.com/repos/odwrtw/polochon/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/odwrtw/polochon/pulls/comments/43112002"},"html":{"href":"https://github.com/odwrtw/polochon/pull/49#discussion_r43112002"},"pull_request":{"href":"https://api.github.com/repos/odwrtw/polochon/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/odwrtw/polochon/pulls/49","id":48840889,"html_url":"https://github.com/odwrtw/polochon/pull/49","diff_url":"https://github.com/odwrtw/polochon/pull/49.diff","patch_url":"https://github.com/odwrtw/polochon/pull/49.patch","issue_url":"https://api.github.com/repos/odwrtw/polochon/issues/49","number":49,"state":"open","locked":false,"title":"First Draft for token implementation","user":{"login":"nduhamel","id":278487,"avatar_url":"https://avatars.githubusercontent.com/u/278487?v=3","gravatar_id":"","url":"https://api.github.com/users/nduhamel","html_url":"https://github.com/nduhamel","followers_url":"https://api.github.com/users/nduhamel/followers","following_url":"https://api.github.com/users/nduhamel/following{/other_user}","gists_url":"https://api.github.com/users/nduhamel/gists{/gist_id}","starred_url":"https://api.github.com/users/nduhamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nduhamel/subscriptions","organizations_url":"https://api.github.com/users/nduhamel/orgs","repos_url":"https://api.github.com/users/nduhamel/repos","events_url":"https://api.github.com/users/nduhamel/events{/privacy}","received_events_url":"https://api.github.com/users/nduhamel/received_events","type":"User","site_admin":false},"body":"For discussion","created_at":"2015-10-27T08:33:18Z","updated_at":"2015-10-27T11:57:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a7382b3fd2f67ca4582346d757e49876aa54345b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/odwrtw/polochon/pulls/49/commits","review_comments_url":"https://api.github.com/repos/odwrtw/polochon/pulls/49/comments","review_comment_url":"https://api.github.com/repos/odwrtw/polochon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/odwrtw/polochon/issues/49/comments","statuses_url":"https://api.github.com/repos/odwrtw/polochon/statuses/49ae63b8d279d6554405522d08d8acc0a1e689d2","head":{"label":"odwrtw:token","ref":"token","sha":"49ae63b8d279d6554405522d08d8acc0a1e689d2","user":{"login":"odwrtw","id":12220159,"avatar_url":"https://avatars.githubusercontent.com/u/12220159?v=3","gravatar_id":"","url":"https://api.github.com/users/odwrtw","html_url":"https://github.com/odwrtw","followers_url":"https://api.github.com/users/odwrtw/followers","following_url":"https://api.github.com/users/odwrtw/following{/other_user}","gists_url":"https://api.github.com/users/odwrtw/gists{/gist_id}","starred_url":"https://api.github.com/users/odwrtw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odwrtw/subscriptions","organizations_url":"https://api.github.com/users/odwrtw/orgs","repos_url":"https://api.github.com/users/odwrtw/repos","events_url":"https://api.github.com/users/odwrtw/events{/privacy}","received_events_url":"https://api.github.com/users/odwrtw/received_events","type":"Organization","site_admin":false},"repo":{"id":39296192,"name":"polochon","full_name":"odwrtw/polochon","owner":{"login":"odwrtw","id":12220159,"avatar_url":"https://avatars.githubusercontent.com/u/12220159?v=3","gravatar_id":"","url":"https://api.github.com/users/odwrtw","html_url":"https://github.com/odwrtw","followers_url":"https://api.github.com/users/odwrtw/followers","following_url":"https://api.github.com/users/odwrtw/following{/other_user}","gists_url":"https://api.github.com/users/odwrtw/gists{/gist_id}","starred_url":"https://api.github.com/users/odwrtw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odwrtw/subscriptions","organizations_url":"https://api.github.com/users/odwrtw/orgs","repos_url":"https://api.github.com/users/odwrtw/repos","events_url":"https://api.github.com/users/odwrtw/events{/privacy}","received_events_url":"https://api.github.com/users/odwrtw/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/odwrtw/polochon","description":"Organizes your movies and shows with Kodi metadata","fork":false,"url":"https://api.github.com/repos/odwrtw/polochon","forks_url":"https://api.github.com/repos/odwrtw/polochon/forks","keys_url":"https://api.github.com/repos/odwrtw/polochon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/odwrtw/polochon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/odwrtw/polochon/teams","hooks_url":"https://api.github.com/repos/odwrtw/polochon/hooks","issue_events_url":"https://api.github.com/repos/odwrtw/polochon/issues/events{/number}","events_url":"https://api.github.com/repos/odwrtw/polochon/events","assignees_url":"https://api.github.com/repos/odwrtw/polochon/assignees{/user}","branches_url":"https://api.github.com/repos/odwrtw/polochon/branches{/branch}","tags_url":"https://api.github.com/repos/odwrtw/polochon/tags","blobs_url":"https://api.github.com/repos/odwrtw/polochon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/odwrtw/polochon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/odwrtw/polochon/git/refs{/sha}","trees_url":"https://api.github.com/repos/odwrtw/polochon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/odwrtw/polochon/statuses/{sha}","languages_url":"https://api.github.com/repos/odwrtw/polochon/languages","stargazers_url":"https://api.github.com/repos/odwrtw/polochon/stargazers","contributors_url":"https://api.github.com/repos/odwrtw/polochon/contributors","subscribers_url":"https://api.github.com/repos/odwrtw/polochon/subscribers","subscription_url":"https://api.github.com/repos/odwrtw/polochon/subscription","commits_url":"https://api.github.com/repos/odwrtw/polochon/commits{/sha}","git_commits_url":"https://api.github.com/repos/odwrtw/polochon/git/commits{/sha}","comments_url":"https://api.github.com/repos/odwrtw/polochon/comments{/number}","issue_comment_url":"https://api.github.com/repos/odwrtw/polochon/issues/comments{/number}","contents_url":"https://api.github.com/repos/odwrtw/polochon/contents/{+path}","compare_url":"https://api.github.com/repos/odwrtw/polochon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/odwrtw/polochon/merges","archive_url":"https://api.github.com/repos/odwrtw/polochon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/odwrtw/polochon/downloads","issues_url":"https://api.github.com/repos/odwrtw/polochon/issues{/number}","pulls_url":"https://api.github.com/repos/odwrtw/polochon/pulls{/number}","milestones_url":"https://api.github.com/repos/odwrtw/polochon/milestones{/number}","notifications_url":"https://api.github.com/repos/odwrtw/polochon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/odwrtw/polochon/labels{/name}","releases_url":"https://api.github.com/repos/odwrtw/polochon/releases{/id}","created_at":"2015-07-18T11:30:08Z","updated_at":"2015-09-10T21:02:30Z","pushed_at":"2015-10-27T08:33:18Z","git_url":"git://github.com/odwrtw/polochon.git","ssh_url":"git@github.com:odwrtw/polochon.git","clone_url":"https://github.com/odwrtw/polochon.git","svn_url":"https://github.com/odwrtw/polochon","homepage":null,"size":807,"stargazers_count":5,"watchers_count":5,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":5,"default_branch":"master"}},"base":{"label":"odwrtw:master","ref":"master","sha":"286e2cb69a303441e16a9c944bcab53b42c39008","user":{"login":"odwrtw","id":12220159,"avatar_url":"https://avatars.githubusercontent.com/u/12220159?v=3","gravatar_id":"","url":"https://api.github.com/users/odwrtw","html_url":"https://github.com/odwrtw","followers_url":"https://api.github.com/users/odwrtw/followers","following_url":"https://api.github.com/users/odwrtw/following{/other_user}","gists_url":"https://api.github.com/users/odwrtw/gists{/gist_id}","starred_url":"https://api.github.com/users/odwrtw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odwrtw/subscriptions","organizations_url":"https://api.github.com/users/odwrtw/orgs","repos_url":"https://api.github.com/users/odwrtw/repos","events_url":"https://api.github.com/users/odwrtw/events{/privacy}","received_events_url":"https://api.github.com/users/odwrtw/received_events","type":"Organization","site_admin":false},"repo":{"id":39296192,"name":"polochon","full_name":"odwrtw/polochon","owner":{"login":"odwrtw","id":12220159,"avatar_url":"https://avatars.githubusercontent.com/u/12220159?v=3","gravatar_id":"","url":"https://api.github.com/users/odwrtw","html_url":"https://github.com/odwrtw","followers_url":"https://api.github.com/users/odwrtw/followers","following_url":"https://api.github.com/users/odwrtw/following{/other_user}","gists_url":"https://api.github.com/users/odwrtw/gists{/gist_id}","starred_url":"https://api.github.com/users/odwrtw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odwrtw/subscriptions","organizations_url":"https://api.github.com/users/odwrtw/orgs","repos_url":"https://api.github.com/users/odwrtw/repos","events_url":"https://api.github.com/users/odwrtw/events{/privacy}","received_events_url":"https://api.github.com/users/odwrtw/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/odwrtw/polochon","description":"Organizes your movies and shows with Kodi metadata","fork":false,"url":"https://api.github.com/repos/odwrtw/polochon","forks_url":"https://api.github.com/repos/odwrtw/polochon/forks","keys_url":"https://api.github.com/repos/odwrtw/polochon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/odwrtw/polochon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/odwrtw/polochon/teams","hooks_url":"https://api.github.com/repos/odwrtw/polochon/hooks","issue_events_url":"https://api.github.com/repos/odwrtw/polochon/issues/events{/number}","events_url":"https://api.github.com/repos/odwrtw/polochon/events","assignees_url":"https://api.github.com/repos/odwrtw/polochon/assignees{/user}","branches_url":"https://api.github.com/repos/odwrtw/polochon/branches{/branch}","tags_url":"https://api.github.com/repos/odwrtw/polochon/tags","blobs_url":"https://api.github.com/repos/odwrtw/polochon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/odwrtw/polochon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/odwrtw/polochon/git/refs{/sha}","trees_url":"https://api.github.com/repos/odwrtw/polochon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/odwrtw/polochon/statuses/{sha}","languages_url":"https://api.github.com/repos/odwrtw/polochon/languages","stargazers_url":"https://api.github.com/repos/odwrtw/polochon/stargazers","contributors_url":"https://api.github.com/repos/odwrtw/polochon/contributors","subscribers_url":"https://api.github.com/repos/odwrtw/polochon/subscribers","subscription_url":"https://api.github.com/repos/odwrtw/polochon/subscription","commits_url":"https://api.github.com/repos/odwrtw/polochon/commits{/sha}","git_commits_url":"https://api.github.com/repos/odwrtw/polochon/git/commits{/sha}","comments_url":"https://api.github.com/repos/odwrtw/polochon/comments{/number}","issue_comment_url":"https://api.github.com/repos/odwrtw/polochon/issues/comments{/number}","contents_url":"https://api.github.com/repos/odwrtw/polochon/contents/{+path}","compare_url":"https://api.github.com/repos/odwrtw/polochon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/odwrtw/polochon/merges","archive_url":"https://api.github.com/repos/odwrtw/polochon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/odwrtw/polochon/downloads","issues_url":"https://api.github.com/repos/odwrtw/polochon/issues{/number}","pulls_url":"https://api.github.com/repos/odwrtw/polochon/pulls{/number}","milestones_url":"https://api.github.com/repos/odwrtw/polochon/milestones{/number}","notifications_url":"https://api.github.com/repos/odwrtw/polochon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/odwrtw/polochon/labels{/name}","releases_url":"https://api.github.com/repos/odwrtw/polochon/releases{/id}","created_at":"2015-07-18T11:30:08Z","updated_at":"2015-09-10T21:02:30Z","pushed_at":"2015-10-27T08:33:18Z","git_url":"git://github.com/odwrtw/polochon.git","ssh_url":"git@github.com:odwrtw/polochon.git","clone_url":"https://github.com/odwrtw/polochon.git","svn_url":"https://github.com/odwrtw/polochon","homepage":null,"size":807,"stargazers_count":5,"watchers_count":5,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/odwrtw/polochon/pulls/49"},"html":{"href":"https://github.com/odwrtw/polochon/pull/49"},"issue":{"href":"https://api.github.com/repos/odwrtw/polochon/issues/49"},"comments":{"href":"https://api.github.com/repos/odwrtw/polochon/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/odwrtw/polochon/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/odwrtw/polochon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/odwrtw/polochon/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/odwrtw/polochon/statuses/49ae63b8d279d6554405522d08d8acc0a1e689d2"}}}}