Skip to content

Commit e99c0d3

Browse files
committed
refactor(analysis): Controller 주석 추가
1 parent 81e42c9 commit e99c0d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/src/main/java/com/backend/domain/analysis/controller/AnalysisController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ public class AnalysisController {
2525
private final AnalysisService analysisService;
2626
private final RepositoryService repositoryService;
2727

28+
// POST: 분석 요청
2829
@PostMapping
2930
public ResponseEntity<ApiResponse<Void>> analyzeRepository(@RequestBody AnalysisRequest request) {
3031
analysisService.analyze(request.githubUrl());
3132
return ResponseEntity.ok(ApiResponse.success());
3233
}
3334

35+
// GET: 사용자 히스토리 전체 목록 조회
3436
@GetMapping("/user/repository/{memberId}")
3537
@Transactional(readOnly = true)
3638
public ResponseEntity<List<HistoryResponseDto>> getMemberHistory(@PathVariable Long memberId){
@@ -60,6 +62,7 @@ public ResponseEntity<List<HistoryResponseDto>> getMemberHistory(@PathVariable L
6062
return ResponseEntity.ok(historyList);
6163
}
6264

65+
// GET: 사용자 분석 결과 조회
6366
@GetMapping("repository/{repositoriesId}")
6467
@Transactional(readOnly = true)
6568
public ResponseEntity<List<AnalysisResultResponseDto>> getAnalysisByRepositoriesId(@PathVariable("repositoriesId") Long repoId){

0 commit comments

Comments
 (0)