feat(learning-auth): expose auth mode in profile and default advanced to jwt

This commit is contained in:
likingcode
2026-03-09 02:11:49 +08:00
parent 3c208651b9
commit f846616e0b
5 changed files with 9 additions and 3 deletions

View File

@@ -16,11 +16,15 @@ public class LearningProfileInfo {
@Value("${app.enabled-modules:ioc,aop,mybatis,transaction,users}")
private String[] enabledModules;
@Value("${auth.type:none}")
private String authType;
@GetMapping("/api/profile")
public Map<String, Object> profileInfo() {
return Map.of(
"profile", activeProfile,
"enabledModules", Arrays.asList(enabledModules)
"enabledModules", Arrays.asList(enabledModules),
"authType", authType
);
}
}