package ru.mtusi.messenger.controller; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.RestController; import ru.mtusi.messenger.dto.HealthDTO; import ru.mtusi.messenger.service.HealthService; @RestController @RequiredArgsConstructor public class HealthController implements HealthApi { private final HealthService healthService; @Override public HealthDTO liveness() { return healthService.liveness(); } @Override public HealthDTO readiness() { return healthService.readiness(); } }