{"action":"closed","issue":{"url":"https://api.github.com/repos/webcompat/webcompat.com/issues/827","labels_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/827/labels{/name}","comments_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/827/comments","events_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/827/events","html_url":"https://github.com/webcompat/webcompat.com/issues/827","id":116244787,"number":827,"title":"Make endpoints.py more DRY","user":{"login":"miketaylr","id":67283,"avatar_url":"https://avatars.githubusercontent.com/u/67283?v=3","gravatar_id":"","url":"https://api.github.com/users/miketaylr","html_url":"https://github.com/miketaylr","followers_url":"https://api.github.com/users/miketaylr/followers","following_url":"https://api.github.com/users/miketaylr/following{/other_user}","gists_url":"https://api.github.com/users/miketaylr/gists{/gist_id}","starred_url":"https://api.github.com/users/miketaylr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miketaylr/subscriptions","organizations_url":"https://api.github.com/users/miketaylr/orgs","repos_url":"https://api.github.com/users/miketaylr/repos","events_url":"https://api.github.com/users/miketaylr/events{/privacy}","received_events_url":"https://api.github.com/users/miketaylr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webcompat/webcompat.com/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"miketaylr","id":67283,"avatar_url":"https://avatars.githubusercontent.com/u/67283?v=3","gravatar_id":"","url":"https://api.github.com/users/miketaylr","html_url":"https://github.com/miketaylr","followers_url":"https://api.github.com/users/miketaylr/followers","following_url":"https://api.github.com/users/miketaylr/following{/other_user}","gists_url":"https://api.github.com/users/miketaylr/gists{/gist_id}","starred_url":"https://api.github.com/users/miketaylr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miketaylr/subscriptions","organizations_url":"https://api.github.com/users/miketaylr/orgs","repos_url":"https://api.github.com/users/miketaylr/repos","events_url":"https://api.github.com/users/miketaylr/events{/privacy}","received_events_url":"https://api.github.com/users/miketaylr/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-11-11T01:52:46Z","updated_at":"2015-11-13T23:02:19Z","closed_at":"2015-11-13T23:02:19Z","body":"Right now endpoints.py is full of a ton of duplicated code that looks like this:\r\n\r\n```\r\nif g.user:\r\n   do_something(some, args, here)\r\nelse:\r\n   proxy_something(slightly, different, args)\r\n```\r\n\r\nIt's kind of gross. Let's make it less gross. :hankey: "}}