On 3/14/2014 07:46, Lee Carmichael wrote:
hook before_error_init => sub {

This is a beautiful solution to the problem.  Thank you!

We didn't have a formal API before, but fixing this problem gave me sufficient reason to refactor the route handlers so that we do.

David makes a good point: route handlers that return JSON should be distinguishable from those that return HTML. Putting them all under /api/* accomplishes that.

Thank you both.
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to