Change authentication request path

This commit is contained in:
2023-10-10 15:45:04 +08:00
parent b34b7cd9e0
commit b1044b8beb
2 changed files with 1 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ class SecurityConfig(
authorizeHttpRequests authorizeHttpRequests
// Allow anonymous access // Allow anonymous access
.requestMatchers( .requestMatchers(
"/api/v*/login", "/login",
"/error/thrown", "/error/thrown",
"/doc.html", "/doc.html",
"/swagger-ui/**", "/swagger-ui/**",

View File

@@ -14,8 +14,6 @@ import top.fatweb.api.service.permission.IAuthenticationService
import top.fatweb.api.util.WebUtil import top.fatweb.api.util.WebUtil
@Tag(name = "身份认证", description = "身份认证相关接口") @Tag(name = "身份认证", description = "身份认证相关接口")
@Suppress("MVCPathVariableInspection")
@RequestMapping("/api/{apiVersion}")
@ApiVersion(2) @ApiVersion(2)
@RestController @RestController
class AuthenticationController(val authenticationService: IAuthenticationService, val userConverter: UserConverter) { class AuthenticationController(val authenticationService: IAuthenticationService, val userConverter: UserConverter) {