installKwebOnRemainingRoutes

fun Application.installKwebOnRemainingRoutes(buildPage: WebBrowser.() -> Unit)

Kweb normally calls this function on initialization, if you provide a buildpage, regardless of whether it's initialized as a standalone, or Ktor Feature.

If you are using Ktor, this is an easy way to migrate from the deprecated buildPage design

Kweb will still do its internal routing properly, e.g if you use path() in your buildPage. ^-^

Nevertheless, please be very careful and avoid using both models in parallel as they have lots of subtle differences and you're bound to hit something!