Skip to content

Commit 12c4cac

Browse files
authored
Update Main.java
1 parent b66f82c commit 12c4cac

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/main/java/Main.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ public static void main(String[] args) {
2020
port(Integer.valueOf(System.getenv("PORT")));
2121
staticFileLocation("/public");
2222

23-
get("/hello", (req, res) -> "Hello World");
24-
25-
get("/", (request, response) -> {
23+
get("/hello", (request, response) -> {
2624
Map<String, Object> attributes = new HashMap<>();
2725
attributes.put("message", "Hello World!");
2826

29-
return new ModelAndView(attributes, "index.ftl");
27+
return new ModelAndView(attributes, "hello.ftl");
3028
}, new FreeMarkerEngine());
3129

3230
get("/db", (req, res) -> {

0 commit comments

Comments
 (0)