@openshift-assisted/ui-lib
Version:
React component library for the Assisted Installer UI
21 lines • 703 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const axiosClient_1 = require("../../api/axiosClient");
const config = {
headers: {
'Content-Type': 'application/json',
},
};
const UISettingsAPI = {
makeBaseURI(clusterId) {
return `/v2/clusters/${clusterId ? clusterId : ''}/ui-settings`;
},
get(clusterId) {
return axiosClient_1.clientWithoutCaseConverter.get(UISettingsAPI.makeBaseURI(clusterId));
},
put(clusterId, data) {
return axiosClient_1.clientWithoutCaseConverter.put(UISettingsAPI.makeBaseURI(clusterId), data, config);
},
};
exports.default = UISettingsAPI;
//# sourceMappingURL=UISettingsAPI.js.map