{"action":"closed","issue":{"url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/729","repository_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage","labels_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/729/labels{/name}","comments_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/729/comments","events_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/729/events","html_url":"https://github.com/samselikoff/ember-cli-mirage/issues/729","id":153562922,"number":729,"title":"Expose some base shorthand route handler methods","user":{"login":"musaffa","id":294616,"avatar_url":"https://avatars.githubusercontent.com/u/294616?v=3","gravatar_id":"","url":"https://api.github.com/users/musaffa","html_url":"https://github.com/musaffa","followers_url":"https://api.github.com/users/musaffa/followers","following_url":"https://api.github.com/users/musaffa/following{/other_user}","gists_url":"https://api.github.com/users/musaffa/gists{/gist_id}","starred_url":"https://api.github.com/users/musaffa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/musaffa/subscriptions","organizations_url":"https://api.github.com/users/musaffa/orgs","repos_url":"https://api.github.com/users/musaffa/repos","events_url":"https://api.github.com/users/musaffa/events{/privacy}","received_events_url":"https://api.github.com/users/musaffa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-07T00:39:10Z","updated_at":"2016-05-14T17:51:41Z","closed_at":"2016-05-14T17:51:41Z","body":"Custom handlers don't have access to some useful methods like `_getAttrsForRequest` which are used in post and put's default handlers. Now, for example, I have a complex model with attributes and relationships and I want to write a custom post / patch handler. Default handlers have access to those methods which can take care of getting attributes from model's attributes and relationships. But In a custom handler we don't have those methods, so we have to roll our own and thus reinventing the wheel.\r\n\r\nIt would be nice if we have access to those methods. What if the `FunctionRouteHandler` extends the `BaseShorthandRouteHandler` or something better?"}}