1
0
forked from PGL/Clyde

Storage System (#92)

First idea of the storage system

Reviewed-on: PGL/Clyde#92
Co-authored-by: Bartha Maxime <231026@umons.ac.be>
Co-committed-by: Bartha Maxime <231026@umons.ac.be>
This commit is contained in:
2024-03-11 17:52:08 +01:00
committed by Maxime
parent ce2efb61c8
commit 5325d6e3ae
7 changed files with 172 additions and 2 deletions

View File

@ -31,7 +31,7 @@ public class UserController {
return new ResponseEntity<>(user, HttpStatus.OK);
}
@PostMapping("/user")
@PostMapping("/user") //todo check role
public ResponseEntity<String> postUser(@RequestBody User user){
userService.save(user);
return new ResponseEntity<>(String.format("Account created with ID:%s",user.getRegNo()),HttpStatus.CREATED);