This commit is contained in:
Andrea Cavalli 2024-05-23 15:03:05 +02:00
parent 0895869460
commit 2525b9d9e9

View File

@ -32,6 +32,12 @@ public class MainVerticle extends AbstractVerticle {
Router router = Router.router(vertx);
router
.get("/*")
.handler(ctx -> {
System.out.println(ctx.request().uri());
System.out.println(ctx.request().absoluteURI());
System.out.println(ctx.normalizedPath());
ctx.next();
})
.handler(StaticHandler
.create(FileSystemAccess.RELATIVE,"webroot")
//.setDirectoryListing(true)