jspears / mers

Mongoose Express Rest Service
MIT License
342 stars 42 forks source link

default transformer? #23

Closed cheesun closed 10 years ago

cheesun commented 10 years ago

Don't see any facility to define a default transformer on a resource - ie; one that does not require passing transform=transformer_name in the url.

Let me know if I'm just not looking hard enough at the docs/code.

Otherwise, I would be happy to implement and raise a pull request for it.

jspears commented 10 years ago

You can do it by putting a route in front of mers that sets the transformer. You can register one also but I don't remember how.

Sent from my iPhone

On Nov 27, 2013, at 8:54 AM, cheesun notifications@github.com wrote:

Don't see any facility to define a default transformer on a resource - ie; one that does not require passing transform= in the url.

Let me know if I'm just not looking hard enough at the docs/code.

Otherwise, I would be happy to implement and raise a pull request for it.

— Reply to this email directly or view it on GitHubhttps://github.com/jspears/mers/issues/23 .