Mount SockJS bridges kept in a variable as sub-routers

Proprietary

Since Vert.x 4 SockJSHandler.bridge(..) returns a sub-router to mount rather than configuring the handler. sockJSHandler.bridge(options); followed by route.handler(sockJSHandler); becomes route.subRouter(sockJSHandler.bridge(options));, and a SockJSHandler variable initialized with bridge(..) becomes a Router mounted with subRouter(..).

io.moderne.vertx.MigrateSockJSBridgeVariables
mod run . --recipe=io.moderne.vertx.MigrateSockJSBridgeVariables

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.