Skip to content

Commit

Permalink
rename: 컨트롤러 메서드명 컨벤션 준수
Browse files Browse the repository at this point in the history
  • Loading branch information
songsunkook committed Jan 6, 2024
1 parent fdac3f4 commit 68e867c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public class DeptController {
private final DeptService deptService;

@GetMapping("/dept")
public ResponseEntity<DeptResponse> findDept(@RequestParam(value = "dept_num") Long deptNumber) {
public ResponseEntity<DeptResponse> getDept(@RequestParam(value = "dept_num") Long deptNumber) {
DeptResponse foundDepartment = deptService.getById(deptNumber);
return ResponseEntity.ok(foundDepartment);
}

@GetMapping("/depts")
public ResponseEntity<List<DeptListItemResponse>> findAllDept() {
public ResponseEntity<List<DeptListItemResponse>> getAllDept() {
List<DeptListItemResponse> response = deptService.getAll();
return ResponseEntity.ok(response);
}
Expand Down

0 comments on commit 68e867c

Please sign in to comment.