redirectTo
Redirects the client to the URL produced by block.
This is an extension function on ApplicationCall.
Parameters
permanent
whether to issue a 301 (permanent) redirect; defaults to false (302 temporary)
block
a lambda that returns the redirect target URL as a String
Redirects the client to the URL produced by block.
This is an extension function on RoutingContext that delegates to ApplicationCall.redirectTo.
Parameters
permanent
whether to issue a 301 (permanent) redirect; defaults to false (302 temporary)
block
a lambda that returns the redirect target URL as a String