This implements a new configuration parameter fail_render. The idea is to easily control what will be rendered to the client in case the routing via condition fails. This parameter also exists in Mojolicious-Plugin-Authorization so I guess using the same name makes sense. The parameter is optional and the default behavior is used if not defined.
Not sure if there is a less verbose way to handle the testing.
Let me know what you think.
Thanks.
Looks good to me, the testing may be verbose but it does it's job so, that's all good. I'll merge this now and push a release to CPAN today somewhere :)
This implements a new configuration parameter
fail_render
. The idea is to easily control what will be rendered to the client in case the routing via condition fails. This parameter also exists in Mojolicious-Plugin-Authorization so I guess using the same name makes sense. The parameter is optional and the default behavior is used if not defined.Not sure if there is a less verbose way to handle the testing. Let me know what you think. Thanks.