Refactored request validator

This commit is contained in:
Rudolf_Barbu 2020-09-05 20:55:34 +03:00
parent faf5b1ecd8
commit 5c6ce45f8d
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ public class SetupController
* @return OR response with empty body
*/
@PostMapping
public ResponseEntity<?> postSettings(@Validated(value = {RequestValidator.PostRequest.class}) @RequestBody SetupDto setupDto) throws Exception
public ResponseEntity<?> postSettings(@Validated(value = RequestValidator.PostRequest.class) @RequestBody SetupDto setupDto) throws Exception
{
return restResponseEntityWrapper.wrap(setupService.post(setupDto));
}