class Main {

    public void supports() {
        Routing routing = Routing.builder()
                                 .register(StaticContentSupport.create("/static"))
                                 .get("/hello/{what}", (req, res) -> res.send(JSON.createObjectBuilder()
                                                                                  .add("message",
                                                                                       "Hello " + req.path()
                                                                                                     .param("what"))
                                                                                  .build()))
                                 .register("/api", JerseySupport.builder()
                                                                .register(HelloWorldResource.class)
                                                                .build())
                                 .build();

        MediaContext mediaContext = MediaContext.builder()
                .addWriter(JsonpSupport.writer())
                .build();

        startServer(routing, mediaContext);
    }

}