package com.foxedu.basecms.api; import java.time.LocalDateTime; import java.util.HashMap; import java.util.Map; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * Swagger 확인용 샘플 API */ @RestController @RequestMapping("/api") public class SampleApiController { @GetMapping("/health") public Map health() { Map result = new HashMap<>(); result.put("status", "ok"); result.put("timestamp", LocalDateTime.now().toString()); return result; } }