package ru.tubryansk.tdms.controller; import lombok.SneakyThrows; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import ru.tubryansk.tdms.service.SysInfoService; @RestController @RequestMapping("/api/v1/sysinfo") public class SysInfoController { @Autowired private SysInfoService sysInfoService; @SneakyThrows @GetMapping("/version") public String getVersion() { return sysInfoService.getVersion(); } }