{"action":"opened","issue":{"url":"https://api.github.com/repos/WP-API/node-wpapi/issues/211","repository_url":"https://api.github.com/repos/WP-API/node-wpapi","labels_url":"https://api.github.com/repos/WP-API/node-wpapi/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/WP-API/node-wpapi/issues/211/comments","events_url":"https://api.github.com/repos/WP-API/node-wpapi/issues/211/events","html_url":"https://github.com/WP-API/node-wpapi/issues/211","id":172783136,"number":211,"title":"EndpointRequest customization","user":{"login":"edygar","id":566280,"avatar_url":"https://avatars.githubusercontent.com/u/566280?v=3","gravatar_id":"","url":"https://api.github.com/users/edygar","html_url":"https://github.com/edygar","followers_url":"https://api.github.com/users/edygar/followers","following_url":"https://api.github.com/users/edygar/following{/other_user}","gists_url":"https://api.github.com/users/edygar/gists{/gist_id}","starred_url":"https://api.github.com/users/edygar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edygar/subscriptions","organizations_url":"https://api.github.com/users/edygar/orgs","repos_url":"https://api.github.com/users/edygar/repos","events_url":"https://api.github.com/users/edygar/events{/privacy}","received_events_url":"https://api.github.com/users/edygar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-23T19:17:32Z","updated_at":"2016-08-23T19:17:32Z","closed_at":null,"body":"Could https://github.com/WP-API/node-wpapi/blob/master/lib/endpoint-factories.js#L41 refer to `handlers[ resource ].Ctor` instead directly to var EndpointRequest?\r\n\r\nI need to inject some code before and after any of the `_httpMethod` are called but the way it is today, I would need to actually mutate each EndpointRequest instance where I could just inherit from them. Also,`invokeAndPromisify` been privated locks me of just overriding it.\r\n\r\nCan somebody help me? My intention is to have access to the RequestData itself, so I could resolve locally when possible (as for local cache or optimistic updates)"}}
{"actor":{"display_login":"edygar"}}