diff --git a/lib/api/http/endpoints/configuration.js b/lib/api/http/endpoints/configuration.js index 98d17e7..5421b4d 100644 --- a/lib/api/http/endpoints/configuration.js +++ b/lib/api/http/endpoints/configuration.js @@ -44,27 +44,17 @@ module.exports = { .acceptJson() .uri('/') .pureJson(), -} -function getUnAuthenticatedConfig() { - return new ApiEndpoint() + getUnauthenticatedConfig: new ApiEndpoint() .get() .acceptJson() .uri('/config') .pureJson() - .postProcess(processUnauthenticatedData); -} - -module.exports = { - createUser: createUser(), - getConfiguration: getConfiguration(), - updateConfiguration: updateConfiguration(), - deleteUser: deleteUser(), - getFullState: getFullState(), - getUnauthenticatedConfig: getUnAuthenticatedConfig(), + .postProcess(processUnauthenticatedData), }; + function processCreateUser(data) { if (util.wasSuccessful(data)) { return data[0].success;