SUPPORT-9170: remove version requests; add health endpoint

This commit is contained in:
gulnaz 2025-05-15 15:14:39 +03:00
parent cf29b7bfff
commit fdf59ecbce
5 changed files with 18 additions and 28 deletions

View file

@ -0,0 +1,16 @@
package ru.micord.ervu.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author gulnaz
*/
@RestController
public class HealthController {
@GetMapping(value = "/health")
public String health() {
return "healthy";
}
}

View file

@ -31,7 +31,7 @@ import static ru.micord.ervu.security.SecurityConstants.ESIA_LOGOUT;
@EnableWebSecurity
public class SecurityConfig {
private static final String[] PERMIT_ALL = new String[] {
"/version", "/esia/url", "/esia/auth", "esia/refresh", "/esia/logout"
"/health", "/esia/url", "/esia/auth", "esia/refresh", "/esia/logout"
};
@Autowired
private JwtAuthenticationFilter jwtAuthenticationFilter;