-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from nhnacademy-be4-My-Books/feature/layout-se…
…tting Feature/layout setting
- Loading branch information
Showing
1,895 changed files
with
203,407 additions
and
1,411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/main/java/store/mybooks/front/admin/controller/AdminController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package store.mybooks.front.admin.controller; | ||
|
||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
/** | ||
* packageName : store.mybooks.front.admin.controller<br> | ||
* fileName : AdminController<br> | ||
* author : minsu11<br> | ||
* date : 2/22/24<br> | ||
* description : | ||
* ===========================================================<br> | ||
* DATE AUTHOR NOTE<br> | ||
* -----------------------------------------------------------<br> | ||
* 2/22/24 minsu11 최초 생성<br> | ||
*/ | ||
@Controller | ||
@RequestMapping("/admin") | ||
public class AdminController { | ||
/** | ||
* get 요청이 들어오면 관리자 페이지를 반환 | ||
* | ||
* @return 관리자 페이지 파일 명 | ||
*/ | ||
@GetMapping | ||
public String doAdmin() { | ||
|
||
return "admin"; | ||
|
||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/store/mybooks/front/book/controller/BookController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package store.mybooks.front.book.controller; | ||
|
||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
/** | ||
* packageName : store.mybooks.front.book.controller<br> | ||
* fileName : BookController<br> | ||
* author : minsu11<br> | ||
* date : 2/22/24<br> | ||
* description : | ||
* ===========================================================<br> | ||
* DATE AUTHOR NOTE<br> | ||
* -----------------------------------------------------------<br> | ||
* 2/22/24 minsu11 최초 생성<br> | ||
*/ | ||
@Controller | ||
@RequestMapping("/book") | ||
public class BookController { | ||
@GetMapping | ||
public String get() { | ||
|
||
return "my-books-layout"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" | ||
layout:decorate="~{common/layout/admin-layout}"> | ||
|
||
<div layout:fragment="content"> | ||
<h1>layout test</h1> | ||
</div> | ||
|
||
</html> |
Oops, something went wrong.