From 144b9bab5848cf7531c3b436cda4f82f3344dcf6 Mon Sep 17 00:00:00 2001 From: Murilo Kakazu Date: Tue, 1 Oct 2024 22:34:01 -0300 Subject: [PATCH] feat: annotate more endpoints --- .../fastfood/presentation/controllers/OrderController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/br/com/fiap/grupo30/fastfood/presentation/controllers/OrderController.java b/src/main/java/br/com/fiap/grupo30/fastfood/presentation/controllers/OrderController.java index 1856c3f..b078232 100644 --- a/src/main/java/br/com/fiap/grupo30/fastfood/presentation/controllers/OrderController.java +++ b/src/main/java/br/com/fiap/grupo30/fastfood/presentation/controllers/OrderController.java @@ -130,6 +130,7 @@ public ResponseEntity submitOrder(@PathVariable Long orderId) { return ResponseEntity.ok().body(order); } + @AdminRequired() @PostMapping(value = "/{orderId}/prepare") @Operation( summary = "Start preparing an order", @@ -139,6 +140,7 @@ public ResponseEntity startPreparingOrder(@PathVariable Long orderId) return ResponseEntity.ok().body(order); } + @AdminRequired() @PostMapping(value = "/{orderId}/ready") @Operation( summary = "Finish preparing an order",