Test
++
This is a index page!
+diff --git a/.editorconfig b/.editorconfig index cf8a52e..96b4507 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,7 +9,7 @@ insert_final_newline = true max_line_length = 120 tab_width = 4 -[*.{md,sh,xml,xsd,yaml,yml}] +[*.{css,html,js,md,sh,xml,xsd,yaml,yml}] max_line_length = 1024 indent_size = 2 tab_width = 2 diff --git a/src/main/kotlin/ltd/hlaeja/controller/HomeController.kt b/src/main/kotlin/ltd/hlaeja/controller/HomeController.kt new file mode 100644 index 0000000..676026b --- /dev/null +++ b/src/main/kotlin/ltd/hlaeja/controller/HomeController.kt @@ -0,0 +1,13 @@ +package ltd.hlaeja.controller + +import org.springframework.stereotype.Controller +import org.springframework.ui.Model +import org.springframework.web.bind.annotation.GetMapping + +@Controller +class HomeController { + + @Suppress("UnusedParameter", "FunctionOnlyReturningConstant") + @GetMapping("/") + fun home(model: Model): String = "home/index" +} diff --git a/src/main/resources/static/css/management.css b/src/main/resources/static/css/management.css new file mode 100644 index 0000000..e69de29 diff --git a/src/main/resources/static/js/management.js b/src/main/resources/static/js/management.js new file mode 100644 index 0000000..e69de29 diff --git a/src/main/resources/templates/home/index.html b/src/main/resources/templates/home/index.html new file mode 100644 index 0000000..55922f2 --- /dev/null +++ b/src/main/resources/templates/home/index.html @@ -0,0 +1,15 @@ + + +
+This is a index page!
+