让/accesslog必须经过鉴权才能使用

This commit is contained in:
2025-10-13 09:01:08 +08:00
parent 33650f53e2
commit 56b0488c36
3 changed files with 3 additions and 3 deletions
@@ -23,7 +23,7 @@ class OpenAPIConfiguration {
.contact(new Contact()
.name("TheWhiteDog9487")
.url("https://www.github.com/TheWhiteDog9487/WebAPI"))
.version("0.6.1")
.version("0.7.0")
.license(new License()
.name("WTFPL")
.url("https://spdx.org/licenses/WTFPL")) )
@@ -27,7 +27,7 @@ class SpringSecurityConfiguration {
.permitAll()
.requestMatchers("/", "/v3/api-docs/**","swagger-ui/**", "/swagger-ui.html")
.permitAll()
.requestMatchers("/message/**")
.requestMatchers("/message/**", "/accesslog/**")
.authenticated()
.anyRequest()
.denyAll(); })