package com.example.skychasemk.controller; import com.example.skychasemk.model.TopMonthlyReport; import com.example.skychasemk.repository.TopMonthlyReportRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.*; import java.util.List; @RestController @RequestMapping("/api/views") public class TopMonthlyReportController { @Autowired private TopMonthlyReportRepository repository; @GetMapping public List getAllReports() { return repository.findAll(); } }