source: src/main/java/com/example/skychasemk/controller/TopMonthlyReportController.java@ fda671c

Last change on this file since fda671c was 62bba0c, checked in by ste08 <sjovanoska@…>, 3 months ago

Report working, Wishlist partly working.

  • Property mode set to 100644
File size: 612 bytes
Line 
1package com.example.skychasemk.controller;
2
3import com.example.skychasemk.model.TopMonthlyReport;
4import com.example.skychasemk.repository.TopMonthlyReportRepository;
5import org.springframework.beans.factory.annotation.Autowired;
6import org.springframework.ui.Model;
7import org.springframework.web.bind.annotation.*;
8
9import java.util.List;
10
11@RestController
12@RequestMapping("/api/views")
13public class TopMonthlyReportController {
14 @Autowired
15 private TopMonthlyReportRepository repository;
16
17
18 @GetMapping
19 public List<TopMonthlyReport> getAllReports() {
20 return repository.findAll();
21 }
22
23}
Note: See TracBrowser for help on using the repository browser.