Skip to content

Instantly share code, notes, and snippets.

@dilunika
Created January 28, 2017 08:37
Show Gist options
  • Save dilunika/3e33483f971c83a9c9ff16f5f171caaf to your computer and use it in GitHub Desktop.
Save dilunika/3e33483f971c83a9c9ff16f5f171caaf to your computer and use it in GitHub Desktop.
public class AdminToolsVerticle extends AbstractVerticle {
@Override
public void start(Future<Void> fut) throws Exception {
Router router = Router.router(vertx);
JdbcUtil.initialize(vertx);
VehicleOwnerRoute.initialize(router);
vertx
.createHttpServer()
.requestHandler(router::accept)
.listen(
config().getInteger(HTTP_PORT, 8080),
http -> completeStartup(http, fut)
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment