Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
fix: annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
MuriloKakazu committed Oct 2, 2024
1 parent ffc5c32 commit 82c55f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public ResponseEntity<ProductDTO> findProductById(@PathVariable Long id) {
return ResponseEntity.ok().body(dto);
}

@AdminRequired
@AdminRequired()
@PostMapping
@Operation(
summary = "Create a new product",
Expand Down Expand Up @@ -101,7 +101,7 @@ public ResponseEntity<ProductDTO> updateProduct(
return ResponseEntity.ok().body(dtoUpdated);
}

@AdminRequired
@AdminRequired()
@DeleteMapping(value = PATH_VARIABLE_ID)
@Operation(
summary = "Delete a product",
Expand Down

0 comments on commit 82c55f3

Please sign in to comment.