SUPPORT-9170: remove version requests; add health endpoint
This commit is contained in:
parent
cf29b7bfff
commit
fdf59ecbce
5 changed files with 18 additions and 28 deletions
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue