Closed kliushnichenko closed 4 months ago
there is a slightly difference between mount(Router)
and install(Router)
. In your case install
should work. Mount only import routes into the main app.
yeah, indeed install
works as expected, thank you
Unlike jooby2 in 3.x decoders installed in the main app is not applied to the routes were mounted from another app
Now hit
post("/pets")
and you will catchUnsupportedMediaType
error, cause Jackson decoder was overridden at the copy route stage. Hope it wasn't changed intentionally and we can return the Jooby2 behaviour