package kr.itn.itnhub.timeline; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** 기관관리 상세의 타임라인 탭이 부르는 읽기 전용 엔드포인트. */ @RestController public class TimelineController { private final TimelineService timelineService; public TimelineController(TimelineService timelineService) { this.timelineService = timelineService; } @GetMapping("/api/orgs/{id}/timeline") public List timeline(@PathVariable Long id) { return timelineService.timeline(id); } }