app.config.addStaticFiles("/components"); | app.config.addStaticFiles("/components"); | ||||
app.get("/", ctx -> { | app.get("/", ctx -> { | ||||
ctx.render("/index.html", model("firstName", "John", "lastName", "Doe")); | |||||
ctx.render("/index.html", model("description", "blaaaaaa", "lastName", "Doe")); | |||||
}); | }); | ||||
app.get("/index.html", ctx -> { | app.get("/index.html", ctx -> { |