Pass the web root of a StaticHandler to StaticHandler.create(..)

Proprietary

Vert.x 4 removed StaticHandler.setWebRoot(String) and setAllowRootFileSystemAccess(boolean), and Vert.x 5 removed StaticHandler.create(String, ClassLoader). The web root and the file system access move to StaticHandler.create(root) or StaticHandler.create(FileSystemAccess.ROOT, root) when the setters are chained to StaticHandler.create(..).

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

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