Last change
on this file since c064a42 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 | |
---|
1 | package com.example.skychasemk.controller;
|
---|
2 |
|
---|
3 | import com.example.skychasemk.model.TopMonthlyReport;
|
---|
4 | import com.example.skychasemk.repository.TopMonthlyReportRepository;
|
---|
5 | import org.springframework.beans.factory.annotation.Autowired;
|
---|
6 | import org.springframework.ui.Model;
|
---|
7 | import org.springframework.web.bind.annotation.*;
|
---|
8 |
|
---|
9 | import java.util.List;
|
---|
10 |
|
---|
11 | @RestController
|
---|
12 | @RequestMapping("/api/views")
|
---|
13 | public 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.