forked from mtusi2026/mtusi2026lab7
25 lines
572 B
Java
25 lines
572 B
Java
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();
|
|
}
|
|
}
|