Change authentication request path
This commit is contained in:
@@ -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/**",
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user