Skip to content

Commit

Permalink
Merge pull request #42 from ODOICHON/feat/admin
Browse files Browse the repository at this point in the history
feat: admin nginx test
  • Loading branch information
YoonTaeMinnnn authored Mar 20, 2023
2 parents 25e66b1 + a22db06 commit 0bfb8fd
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ dependencies {
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
testImplementation("org.springframework.restdocs:spring-restdocs-asciidoctor")
// Thymeleaf
implementation("org.thymeleaf:thymeleaf:3.1.1.RELEASE")

}

tasks.withType<KotlinCompile> {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.example.jhouse_server.admin.user.controller

import com.example.jhouse_server.domain.user.service.UserService
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping

@RequestMapping("/admin")
@Controller
class AdminUserController (
var userService: UserService
){

// 메인 페이지 - 로그인 화면
@GetMapping
fun getSignIn() : String {
return "login"
}


}
9 changes: 9 additions & 0 deletions src/main/resources/templates/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8"/>
</head>
<body>
<p>오이시쿠나레</p>
</body>
</html>

0 comments on commit 0bfb8fd

Please sign in to comment.