tech.greenfield.vertx.irked.example.ExampleAPIv2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of irked-vertx Show documentation
Show all versions of irked-vertx Show documentation
Opinionated framework for vertx-web route configuration and dispatch
package tech.greenfield.vertx.irked.example;
import io.vertx.core.json.JsonObject;
import tech.greenfield.vertx.irked.Controller;
import tech.greenfield.vertx.irked.annotations.Endpoint;
public class ExampleAPIv2 extends Controller {
@Endpoint("/")
WebHandler start = r -> r.sendJSON(new JsonObject().put("version", 2));
}