-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
refactor코드가 내부적으로 작동하는 방식을 변경합니다.코드가 내부적으로 작동하는 방식을 변경합니다.
Description
📋 작업 내용
전체적인 Controller를 View Controller와 API Controller로 분리하여 역할을 명확히 하고, 유지보수성과 코드 가독성을 향상시키기
🔍 현재 상황
- 하나의 Controller에 HTML 뷰 반환용 메서드와 JSON API용 메서드가 혼합되어 있음
- @controller와 @responsebody가 혼용되어 있어 구조가 복잡함
- 뷰(View)와 API(ResponseEntity) 로직이 뒤섞여 테스트 및 수정 시 혼란 발생 가능
✅ 할 일
- ItemController(API Controller), ItemViewController(View Controller) 형식으로 네이밍
- HTML 렌더링 메서드는 View Controller로 이동(
@Controller) - JSON 응답 메서드는 API Controller로 이동(
@RestController)
Metadata
Metadata
Labels
refactor코드가 내부적으로 작동하는 방식을 변경합니다.코드가 내부적으로 작동하는 방식을 변경합니다.
Type
Projects
Status
To do