Skip to content

Commit

Permalink
VUU25: Make deleteLayout generate 404 if layout does not exist (backend)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfisher-scottlogic committed Oct 5, 2023
1 parent 681dd93 commit 7b5dc5a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ public void updateLayout(@PathVariable UUID id, @RequestBody @Valid LayoutReques
@ResponseStatus(HttpStatus.NO_CONTENT)
@DeleteMapping("/{id}")
public void deleteLayout(@PathVariable UUID id) {
// Generate a 404 if layout doesn't exist
layoutService.getLayout(id);
layoutService.deleteLayout(id);
}
}

0 comments on commit 7b5dc5a

Please sign in to comment.