Spring 전환 골격 최신 reviewer 검증 #1

Open
forge-bot wants to merge 7 commits from forge/role-developer-reverify-550-001-attempt-1-run-41adeb6fc379 into main
Showing only changes of commit 632740dea7 - Show all commits

View file

@ -0,0 +1,26 @@
package com.example.controller;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
* Simple REST controller for health check endpoint.
*/
@RestController
@RequestMapping("/api")
public class HealthController {
@GetMapping("/health")
public ResponseEntity<Map<String, String>> health() {
return ResponseEntity.ok(Map.of("status", "UP"));
}
@GetMapping("/ping")
public ResponseEntity<String> ping() {
return ResponseEntity.ok("pong");
}
}