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") public class StatisticsController { private final StatisticsService statisticsService; @GetMapping public Statistics get() { log.info("get all statistics"); return statisticsService.getStatistics(); } }