feat: rename home to index

This commit is contained in:
2025-11-08 13:06:27 +01:00
parent 8f39655da2
commit fd5b5e05e6
3 changed files with 14 additions and 14 deletions

View File

@@ -5,10 +5,10 @@ import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class HomeController {
public class IndexController {
@GetMapping("/")
public String home(Model model) {
model.addAttribute("message", "Hello Thymeleaf!xxx");
return "home";
return "index";
}
}

View File

@@ -1,12 +0,0 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Home</title>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<h1 class="bg-red-200" th:text="${message}">Placeholder message</h1>
<p>Test 2</p>
</body>
</html>

View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Projektverwaltung</title>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<h1 class="bg-red-200" th:text="${message}">Placeholder message</h1>
<p>Test 2</p>
</body>
</html>