Pass the web root of a StaticHandler to StaticHandler.create(..)
ProprietaryVert.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. MigrateStaticHandlerWebRootmod run . --recipe= io. moderne. vertx. MigrateStaticHandlerWebRootInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.