If a user wants to intercept a route like
and redirect it to something like
using this syntax
Find some way to reference the existing rc in the toRedirect() DSL. Perhaps allow the target to be a closure that receives event, rc, and prc.
It's possible to do this right now like so:
but the docs aren't really clear that you can call a redirect in the response closure and it would still be nice to do it via the actual toRedirect() part of the DSL.