Skip to content

Commit

Permalink
Fixing bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-murray committed Dec 27, 2019
1 parent 80a6e44 commit 491070b
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions lib/api/http/endpoints/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,17 @@ module.exports = {
.acceptJson()
.uri('/<username>')
.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;
Expand Down

0 comments on commit 491070b

Please sign in to comment.