diff --git a/app/src/main/java/io/github/tttol/mrls/controller/TopController.java b/app/src/main/java/io/github/tttol/mrls/controller/TopController.java new file mode 100644 index 0000000..c48ea54 --- /dev/null +++ b/app/src/main/java/io/github/tttol/mrls/controller/TopController.java @@ -0,0 +1,17 @@ +package io.github.tttol.mrls.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; + +import lombok.RequiredArgsConstructor; + +@Controller +@RequestMapping("/") +@RequiredArgsConstructor +public class TopController { + @GetMapping + public String top() { + return "top"; + } +} diff --git a/app/src/main/resources/application.yml b/app/src/main/resources/application.yml index 8ebc773..dcf8181 100644 --- a/app/src/main/resources/application.yml +++ b/app/src/main/resources/application.yml @@ -1,3 +1,5 @@ +server: + port: 8081 app: gitlab: host: host diff --git a/app/src/main/resources/templates/top.html b/app/src/main/resources/templates/top.html new file mode 100644 index 0000000..cb23814 --- /dev/null +++ b/app/src/main/resources/templates/top.html @@ -0,0 +1,12 @@ + + + + + MRLS + + + +

Hello MRLS

+ + \ No newline at end of file