Skip to content

Commit

Permalink
standard post method to add/update user
Browse files Browse the repository at this point in the history
  • Loading branch information
selvaebi committed Mar 20, 2019
1 parent 57cc487 commit 3617a28
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ public class AccessioningUserRestController {
@Autowired
private AccessioningUserRepository accessioningUserRepository;

@RequestMapping(path = "addOrUpdate", method = {RequestMethod.POST},
produces = {"application/json"}, consumes = {"application/json"})
public void saveOrUpdate(@RequestBody AccessioningUser accessioningUser) {
@RequestMapping(method = {RequestMethod.POST}, produces = {"application/json"}, consumes = {"application/json"})
public void saveUser(@RequestBody AccessioningUser accessioningUser) {
accessioningUserRepository.save(accessioningUser);
}
}

0 comments on commit 3617a28

Please sign in to comment.