diff --git a/src/main/java/net/frozenorb/apiv3/APIv3.java b/src/main/java/net/frozenorb/apiv3/APIv3.java index 767360a..eb34d45 100644 --- a/src/main/java/net/frozenorb/apiv3/APIv3.java +++ b/src/main/java/net/frozenorb/apiv3/APIv3.java @@ -33,6 +33,7 @@ import lombok.Getter; import lombok.extern.slf4j.Slf4j; import net.frozenorb.apiv3.handler.ActorAttributeHandler; import net.frozenorb.apiv3.handler.AuthorizationHandler; +import net.frozenorb.apiv3.handler.LoaderIoHandler; import net.frozenorb.apiv3.route.GETDump; import net.frozenorb.apiv3.route.GETWhoAmI; import net.frozenorb.apiv3.route.POSTMetrics; @@ -235,6 +236,7 @@ public final class APIv3 extends AbstractVerticle { HttpServer webServer = vertx.createHttpServer(); Router mainRouter = Router.router(vertx); + mainRouter.route().handler(new LoaderIoHandler()); mainRouter.route().handler(new ActorAttributeHandler()); mainRouter.route().handler(new AuthorizationHandler()); mainRouter.route().handler(LoggerHandler.create(LoggerFormat.TINY)); diff --git a/src/main/java/net/frozenorb/apiv3/handler/LoaderIoHandler.java b/src/main/java/net/frozenorb/apiv3/handler/LoaderIoHandler.java new file mode 100644 index 0000000..8c46e06 --- /dev/null +++ b/src/main/java/net/frozenorb/apiv3/handler/LoaderIoHandler.java @@ -0,0 +1,19 @@ +package net.frozenorb.apiv3.handler; + +import io.vertx.core.Handler; +import io.vertx.ext.web.RoutingContext; + +public final class LoaderIoHandler implements Handler { + + @Override + public void handle(RoutingContext ctx) { + String path = ctx.request().path().replace("/", ""); + + if (path.equals("loaderio-1c81aa574f79c573e7220e15e30a96aa")) { + ctx.response().end(path); + } else { + ctx.next(); + } + } + +} \ No newline at end of file