We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d86dda commit 93f1decCopy full SHA for 93f1dec
1 file changed
src/main/java/Main.java
@@ -26,7 +26,13 @@ public static void main(String[] args) {
26
27
return new ModelAndView(attributes, "hello.ftl");
28
}, new FreeMarkerEngine());
29
+
30
+ get("/", (request, response) -> {
31
+ Map<String, Object> attributes = new HashMap<>();
32
+ attributes.put("message", "Hello World!");
33
34
+ return new ModelAndView(attributes, "index.ftl");
35
+ }, new FreeMarkerEngine());
36
get("/db", (req, res) -> {
37
Connection connection = null;
38
Map<String, Object> attributes = new HashMap<>();
0 commit comments