mirror of
https://github.com/TheWhiteDog9487/WebAPI.git
synced 2026-08-11 23:01:30 +08:00
让/accesslog必须经过鉴权才能使用
This commit is contained in:
@@ -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")) )
|
||||
|
||||
+1
-1
@@ -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(); })
|
||||
|
||||
Reference in New Issue
Block a user