From 51530775d59b12423b2a040c780d040c0433e88f Mon Sep 17 00:00:00 2001 From: gooot Date: Fri, 30 Aug 2024 13:51:20 +0900 Subject: [PATCH] =?UTF-8?q?[#214]=20docs=20:=20=EC=A3=BC=EC=84=9D=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../up/admin/controller/AdminPageController.java | 12 ++++++++++-- .../java/com/speech/up/demo/BannedController.java | 10 ++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/speech/up/admin/controller/AdminPageController.java b/src/main/java/com/speech/up/admin/controller/AdminPageController.java index 4bd3789..c44a46f 100644 --- a/src/main/java/com/speech/up/admin/controller/AdminPageController.java +++ b/src/main/java/com/speech/up/admin/controller/AdminPageController.java @@ -4,12 +4,20 @@ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; +/** + * AdminPageController는 관리자의 대시보드 페이지를 처리하는 컨트롤러입니다. + */ + @Controller @RequestMapping("/admin") public class AdminPageController { - + /** + * 관리 페이지를 반환합니다. + * + * @return "admin-page" 뷰 이름 + */ @GetMapping("/view") - public String adminPage(){ + public String adminPage() { return "admin-page"; } } diff --git a/src/main/java/com/speech/up/demo/BannedController.java b/src/main/java/com/speech/up/demo/BannedController.java index 9884702..3efc545 100644 --- a/src/main/java/com/speech/up/demo/BannedController.java +++ b/src/main/java/com/speech/up/demo/BannedController.java @@ -2,10 +2,16 @@ import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; - +/** + * BannedController는 접근이 제한된 사용자에게 표시되는 페이지를 처리하는 컨트롤러입니다. + */ @Controller public class BannedController { - + /** + * 접근이 제한된 페이지를 반환합니다. + * + * @return "banned" 뷰 이름 + */ @GetMapping("/banned-page") public String bannedPage() { return "banned";