NeahNew/node_modules/@keycloak/keycloak-admin-client/lib/resources/serverInfo.js
2025-05-03 15:36:20 +02:00

20 lines
558 B
JavaScript

import Resource from "./resource.js";
export class ServerInfo extends Resource {
constructor(client) {
super(client, {
path: "/",
getBaseUrl: () => client.baseUrl,
});
}
find = this.makeRequest({
method: "GET",
path: "/admin/serverinfo",
});
findEffectiveMessageBundles = this.makeRequest({
method: "GET",
path: "/resources/{realm}/{themeType}/{locale}",
urlParamKeys: ["realm", "themeType", "locale"],
queryParamKeys: ["theme", "source"],
});
}