We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b66f82c commit 12c4cacCopy full SHA for 12c4cac
1 file changed
src/main/java/Main.java
@@ -20,13 +20,11 @@ public static void main(String[] args) {
20
port(Integer.valueOf(System.getenv("PORT")));
21
staticFileLocation("/public");
22
23
- get("/hello", (req, res) -> "Hello World");
24
-
25
- get("/", (request, response) -> {
+ get("/hello", (request, response) -> {
26
Map<String, Object> attributes = new HashMap<>();
27
attributes.put("message", "Hello World!");
28
29
- return new ModelAndView(attributes, "index.ftl");
+ return new ModelAndView(attributes, "hello.ftl");
30
}, new FreeMarkerEngine());
31
32
get("/db", (req, res) -> {
0 commit comments