From 82c55f3e1a87158f6dfcdc89b04659123205856c Mon Sep 17 00:00:00 2001 From: Murilo Kakazu Date: Tue, 1 Oct 2024 22:30:55 -0300 Subject: [PATCH] fix: annotation --- .../fastfood/presentation/controllers/ProductController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/br/com/fiap/grupo30/fastfood/presentation/controllers/ProductController.java b/src/main/java/br/com/fiap/grupo30/fastfood/presentation/controllers/ProductController.java index 8845b17..50740c6 100644 --- a/src/main/java/br/com/fiap/grupo30/fastfood/presentation/controllers/ProductController.java +++ b/src/main/java/br/com/fiap/grupo30/fastfood/presentation/controllers/ProductController.java @@ -62,7 +62,7 @@ public ResponseEntity findProductById(@PathVariable Long id) { return ResponseEntity.ok().body(dto); } - @AdminRequired + @AdminRequired() @PostMapping @Operation( summary = "Create a new product", @@ -101,7 +101,7 @@ public ResponseEntity updateProduct( return ResponseEntity.ok().body(dtoUpdated); } - @AdminRequired + @AdminRequired() @DeleteMapping(value = PATH_VARIABLE_ID) @Operation( summary = "Delete a product",