Routing in Vert.x

Learn how to handle the routing requests in a Vert.x application.

Adding a basic endpoint

Notice that no matter which URL we specify, we always get the same result. Of course, that’s not what we want to achieve. Let’s start by adding the most basic endpoint, which will only tell us that the service is up and running.

For that, we’ll use Router in our App.kt file:

val
...