!446 ref: 重构验证码路径支持单体版本

Merge pull request !446 from lbw/N/A
This commit is contained in:
lbw 2023-11-20 04:37:44 +00:00 committed by Gitee
commit 24df3bedf6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -43,7 +43,7 @@ public class RouterFunctionConfiguration {
@Bean
public RouterFunction<ServerResponse> routerFunction() {
return RouterFunctions.route(
RequestPredicates.path("/code").and(RequestPredicates.accept(MediaType.TEXT_PLAIN)), imageCodeHandler);
RequestPredicates.path("/code/image").and(RequestPredicates.accept(MediaType.TEXT_PLAIN)), imageCodeHandler);
}
}