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

Signed-off-by: lbw <wangiegie@163.com>
This commit is contained in:
lbw 2023-11-20 04:36:54 +00:00 committed by Gitee
parent b635e4ca32
commit 04569ffc13
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);
}
}