feat: reveal encrypted config secrets on demand
This commit is contained in:
@@ -276,6 +276,10 @@ export const api = {
|
||||
body: "{}",
|
||||
}),
|
||||
configs: () => request<SystemConfigItem[]>("/admin/config"),
|
||||
revealConfigSecret: (configKey: string) =>
|
||||
request<{ configKey: string; configValue: string }>(
|
||||
`/admin/config/${encodeURIComponent(configKey)}/secret`,
|
||||
),
|
||||
saveConfig: (payload: Record<string, unknown>) =>
|
||||
request<SystemConfigItem>("/admin/config", { method: "PUT", body: JSON.stringify(payload) }),
|
||||
ssoConfig: () => request<{ userClientUrl: string }>("/admin/sso/config"),
|
||||
|
||||
Reference in New Issue
Block a user