Changed all endpoints to post

This commit is contained in:
Marc Beyer 2022-01-26 14:26:47 +01:00
parent 8f04ac7ae8
commit 3575dccf94

View File

@ -145,11 +145,7 @@ public class UserController {
return new ResponseEntity<>( "", HttpStatus.OK); return new ResponseEntity<>( "", HttpStatus.OK);
} }
/***************** @PostMapping(path = "/all")
* GET-ENDPOINTS *
*****************/
@GetMapping(path = "/all")
public @ResponseBody public @ResponseBody
ResponseEntity<String> getAllUser() { ResponseEntity<String> getAllUser() {
List<User> userList = userDAO.getAllUser(); List<User> userList = userDAO.getAllUser();