javalin / website

Javalin website source code
https://javalin.io
36 stars 87 forks source link

What is the proper Hello World snippet for 6.1.3 #266

Closed edd-1701 closed 2 months ago

edd-1701 commented 2 months ago

re: https://javalin.io/news/javalin-6.0.0-stable.html, https://javalin.io/documentation#getting-started

        var app = Javalin.create(/*config*/)
            .get("/", ctx -> ctx.result("Hello World"))
            .start(7070);

Am I missing something, I see the HTTP verb methods removed between versions 5.6.4 and 6.1.3

Screen Shot 2024-04-30 at 9 05 03 AM

addEndpoint() seems to be the new usage

tipsy commented 2 months ago

It has not been removed, it's just been extracted :)