From 020fb847208904a686bd1ad5f40174238f80f7e5 Mon Sep 17 00:00:00 2001 From: t-takahashi Date: Wed, 31 Jan 2024 08:03:24 +0900 Subject: [PATCH] add top.html --- .../tttol/mrls/controller/TopController.java | 17 +++++++++++++++++ app/src/main/resources/application.yml | 2 ++ app/src/main/resources/templates/top.html | 12 ++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 app/src/main/java/io/github/tttol/mrls/controller/TopController.java create mode 100644 app/src/main/resources/templates/top.html 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