Exceptions and Errors are better Files structure is better New ComponentContext.ts New DataTable.tsx tables.ts Massive components refactoring New Group.java New LoggingRequestFilter.java LoggingSessionListener.java New NotificationStore.ts SysInfoStore.ts New reactiveValue.ts ReactiveControls.tsx New dependencies And much more
22 lines
639 B
Java
22 lines
639 B
Java
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();
|
|
}
|
|
}
|