Skip to content

Commit

Permalink
feat: add index.html, IndexController.java
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrationn committed Mar 15, 2024
1 parent dd4729a commit a17b448
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/com/t3t/bookstoreapi/index/IndexController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.t3t.bookstoreapi.index;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {
@GetMapping(value = {"/index.html","/"})
public String index(){
return "index";
}
}
10 changes: 10 additions & 0 deletions src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>welcome page</title>
</head>
<body>
<h1>hello spring!!</h1>
</body>
</html>

0 comments on commit a17b448

Please sign in to comment.