File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
backend/src/main/java/com/backend/domain/analysis/controller Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 88import com .backend .domain .analysis .service .AnalysisService ;
99import com .backend .domain .repository .entity .Repositories ;
1010import com .backend .domain .repository .service .RepositoryService ;
11+ import com .backend .global .exception .BusinessException ;
12+ import com .backend .global .exception .ErrorCode ;
1113import com .backend .global .response .ApiResponse ;
1214import lombok .RequiredArgsConstructor ;
1315import org .springframework .http .ResponseEntity ;
@@ -28,6 +30,10 @@ public class AnalysisController {
2830 // POST: 분석 요청
2931 @ PostMapping
3032 public ResponseEntity <ApiResponse <Void >> analyzeRepository (@ RequestBody AnalysisRequest request ) {
33+ if (request == null ) {
34+ throw new BusinessException (ErrorCode .INVALID_INPUT_VALUE );
35+ }
36+
3137 analysisService .analyze (request .githubUrl ());
3238 return ResponseEntity .ok (ApiResponse .success ());
3339 }
You can’t perform that action at this time.
0 commit comments