Andrei Shilov
07/04/2025, 3:27 PMintercept
for Pipelines
between 2.x a and 3.2
we used to have nested routes like
route("x"){
get("") {...}
route("/b") {
intercept(ApplicationCallPipeline.Call) { ...}
get("")
}
}
in 3.2 nested intercept affects parent intercept and previously intercept(ApplicationCallPipeline.Call)
was always called before we end up in the handler code and now it is not called before the handler is called
Maybe we were relying on some undocumented behaviour ... do not really know.
Any help is appreciated, Thx in advance!Aleksei Tirman [JB]
07/09/2025, 9:33 AMval plugin = createRouteScopedPlugin("Plugin") {
onCall {
// ...
}
}
routing {
// ...
route("/b") {
install(plugin)
}
}