diff --git a/src/main/java/com/t3t/bookstoreapi/index/IndexController.java b/src/main/java/com/t3t/bookstoreapi/index/IndexController.java new file mode 100644 index 00000000..d752e402 --- /dev/null +++ b/src/main/java/com/t3t/bookstoreapi/index/IndexController.java @@ -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"; + } +} diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html new file mode 100644 index 00000000..2823da5c --- /dev/null +++ b/src/main/resources/templates/index.html @@ -0,0 +1,10 @@ + + +
+ +