Skip to content

[REFACTOR] Extract business logic to service layer #140

@ramong26

Description

@ramong26

문제점

  • API 라우트에 비즈니스 로직이 섞여 있음
  • 코드 재사용성 낮음
  • 테스트하기 어려움

개선 사항

1. Service 클래스 생성

  • src/service/spotify/SpotifyService.ts
  • src/service/auth/AuthService.ts
  • src/service/comments/CommentService.ts

2. API 라우트 리팩토링

  • 비즈니스 로직을 Service로 이동
  • API 라우트는 얇은 레이어로 유지

참고

관련 이슈: #100 (SOLID 원칙)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions