fixed controllers
This commit is contained in:
@@ -3,10 +3,12 @@ package com.krylov.refound.controller;
|
||||
import com.krylov.refound.entity.Statistics;
|
||||
import com.krylov.refound.service.StatisticsService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/api/v1/statistics")
|
||||
@@ -15,6 +17,7 @@ public class StatisticsController {
|
||||
|
||||
@GetMapping
|
||||
public Statistics get() {
|
||||
log.info("get all statistics");
|
||||
return statisticsService.getStatistics();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user