settings: move externaldap setting

This commit is contained in:
Girish Ramakrishnan
2023-08-03 02:06:07 +05:30
parent a19e502198
commit 4a34c390f8
9 changed files with 164 additions and 160 deletions

View File

@@ -1040,7 +1040,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
};
Client.prototype.setExternalLdapConfig = function (config, callback) {
post('/api/v1/settings/external_ldap_config', config, null, function (error, data, status) {
post('/api/v1/external_ldap/config', config, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
@@ -1049,7 +1049,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
};
Client.prototype.getExternalLdapConfig = function (callback) {
get('/api/v1/settings/external_ldap_config', null, function (error, data, status) {
get('/api/v1/external_ldap/config', null, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
@@ -2424,7 +2424,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
};
Client.prototype.startExternalLdapSync = function (callback) {
post('/api/v1/cloudron/sync_external_ldap', {}, null, function (error, data, status) {
post('/api/v1/external_ldap/sync', {}, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 202) return callback(new ClientError(status, data));