Revert "Expose Google client ID via API config and use dynamically"

This reverts commit 76c2771b7b.
This commit is contained in:
tim
2025-07-15 19:57:19 +08:00
parent 43f4e03586
commit 5fe10d770a
3 changed files with 5 additions and 28 deletions

View File

@@ -31,9 +31,6 @@ public class ConfigController {
@Value("${app.ai.format-limit:3}")
private int aiFormatLimit;
@Value("${google.client-id:}")
private String googleClientId;
private final RegisterModeService registerModeService;
@GetMapping("/config")
@@ -46,7 +43,6 @@ public class ConfigController {
resp.setCommentCaptchaEnabled(commentCaptchaEnabled);
resp.setAiFormatLimit(aiFormatLimit);
resp.setRegisterMode(registerModeService.getRegisterMode());
resp.setGoogleClientId(googleClientId);
return resp;
}
@@ -59,6 +55,5 @@ public class ConfigController {
private boolean commentCaptchaEnabled;
private int aiFormatLimit;
private RegisterMode registerMode;
private String googleClientId;
}
}