Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.example.team4backend.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@Tag(name = "Health Check", description = "서버 상태 확인 API")
@RestController
public class HealthCheckController {

@Operation(summary = "헬스 체크", description = "ALB 타겟 그룹 헬스 체크용 엔드포인트")
@GetMapping("/health")
public ResponseEntity<Map<String, String>> healthCheck() {
Map<String, String> response = new HashMap<>();
response.put("status", "UP");
return ResponseEntity.ok(response);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ private SecurityPaths() {}
"/auth/refresh",
"/prompts",
"/relationships",
"/chat-styles"
"/chat-styles",
"/health",
"/"
};

public static final String[] CSRF_IGNORED = {
Expand Down