I am trying to add kind of hello/name (for health check) for my app but I do not want to do that part of my chainAction.
.handlers(chain -> chain
.prefix("api", TaskChainAction.class))
);
What it takes to add second hello greeting without using "api" prefix?
I tried
.handlers(chain-> chain
.get("/:name", ctx -> ctx.render("Hello"+ctx.getPathTokens().get("name"))))
.handlers(chain -> chain
.prefix("task", TaskChainAction.class))
);
and
.handlers(chain-> chain
.get("/:name", ctx -> ctx.render("Hello"+ctx.getPathTokens().get("name"))))
.handlers(chain -> chain
.prefix("task", TaskChainAction.class))
No luck..
I am okay with adding second prefix e.g /greetings/hello. Adding second prefix is not working either.
I am using 1.4.6 version of ratpack. Any help is appreciated