Skip to content

Commit

Permalink
Rename allocateUser func to createUser to comform with the endpoint path
Browse files Browse the repository at this point in the history
  • Loading branch information
realvictorprm committed Jan 18, 2022
1 parent 46b61f1 commit 77cbe9a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class Endpoints(
path("query") & withTimer(queryMatchingTimer) apply toRoute(query(req)),
path("fetch") & withFetchTimer apply toRoute(fetch(req)),
path("user") apply toRoute(getUser(req)),
path("user" / "create") apply toRoute(allocateUser(req)),
path("user" / "create") apply toRoute(createUser(req)),
path("user" / "delete") apply toRoute(deleteUser(req)),
path("user" / "rights") apply toRoute(listUserRights(req)),
path("user" / "rights" / "grant") apply toRoute(grantUserRights(req)),
Expand Down Expand Up @@ -601,7 +601,7 @@ class Endpoints(
)(req)
.map(ps => partiesResponse(parties = ps._1.toList, unknownParties = ps._2.toList))

def allocateUser(req: HttpRequest)(implicit
def createUser(req: HttpRequest)(implicit
lc: LoggingContextOf[InstanceUUID with RequestID]
): ET[domain.SyncResponse[Boolean]] =
proxyWithCommand { (jwt, createUserRequest: domain.CreateUserRequest) =>
Expand Down

0 comments on commit 77cbe9a

Please sign in to comment.