anthony castillo
07/29/2020, 2:12 PMfun Route.routeA() = route("/a") {
intercept(ApplicationCallPipeline.Call) {
<do_something_a>
}
}
fun Route.routeB() = route("/a/{some_value}") {
intercept(ApplicationCallPipeline.Call) {
<do_something_b>
}
}
routing {
routeB()
routeA()
}
When we send a request to /a/some_value
, the request goes through do_something_a
first before do_something_b
. Is this the expected behavior? Our expectation is that only do_something_b
would be triggered, since in this case routeB
is not a child route of routeA
Note: We separated the routes due to the hope that the interceptor will only be applied to the enclosing route. We have some business requirement where ACL is different on those scenariosBrad Murray
07/31/2020, 12:18 AM