build
This commit is contained in:
@@ -21,7 +21,7 @@ class BearerTokenFilter(
|
||||
private val publicMatchers = listOf(
|
||||
AntPathRequestMatcher("/auth/login", "POST"),
|
||||
AntPathRequestMatcher("/auth/register", "POST"),
|
||||
AntPathRequestMatcher("/auth/tgLogin", "POST"),
|
||||
AntPathRequestMatcher("/auth/tg-login", "POST"),
|
||||
AntPathRequestMatcher("/actuator/**"),
|
||||
AntPathRequestMatcher("/static/**"),
|
||||
AntPathRequestMatcher("/wishlistexternal/**"),
|
||||
|
||||
@@ -31,7 +31,7 @@ class SecurityConfig(
|
||||
.logout { it.disable() }
|
||||
|
||||
.authorizeHttpRequests {
|
||||
it.requestMatchers(HttpMethod.POST, "/auth/login", "/auth/register", "/auth/tgLogin").permitAll()
|
||||
it.requestMatchers(HttpMethod.POST, "/auth/login", "/auth/register", "/auth/tg-login").permitAll()
|
||||
it.requestMatchers("/actuator/**", "/static/**").permitAll()
|
||||
it.requestMatchers("/wishlistexternal/**").permitAll()
|
||||
it.requestMatchers("/swagger-ui/**", "/swagger-ui.html", "/v3/api-docs/**").permitAll()
|
||||
|
||||
Reference in New Issue
Block a user