Router Creation
Use to defined or override end-point responses for servers. Groovy def router = server.router() .get("/hello/:name") { request -> server.response([message: "hello ${request.param("name")}"]) } .get("/bye/:name") { request -> server.response([message: "bye ${request.param("name")}"]) } Check servers/import-and-dependencies Import And Dependencies for prerequisites. Java WebTauRouter router = server.router() .get("/hello/:name", (request) -> server.response(map("message", "hello " + request.param("name")))) .get("/bye/:name", (request) -> server.response(map("message", "bye " + request.param("name")))); Check servers/import-and-dependencies Import And Dependencies for prerequisites.