diff --git a/CLAUDE.md b/CLAUDE.md index c84e6d1..2b6924c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -499,6 +499,7 @@ ## SAM API Development Rules ### 1. Architecture Philosophy - **Service First**: All business logic must be written in Service classes (public functions) - **Controller**: Only responsible for DI injection of Services and calling them. Use ApiResponse::handle() for responses + - **Import**: `use App\Helpers\ApiResponse;` (⚠️ 반드시 이 경로 사용) - **Exception Flow**: Errors are thrown → converted to JSON by global handler - **Context Enforcement**: Base Service requires tenantId(), apiUserId(). Throws exception if not set