Skip to content

Commit

Permalink
Merge pull request #215 from Kernel360/docs/#214/addJavaDocs
Browse files Browse the repository at this point in the history
[#214] docs : 주석 추가
  • Loading branch information
xorwns118 authored Aug 30, 2024
2 parents 495965b + 5153077 commit 9cf4abb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}
10 changes: 8 additions & 2 deletions src/main/java/com/speech/up/demo/BannedController.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 9cf4abb

Please sign in to comment.