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

Commit

Permalink
feat: annotate more endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
MuriloKakazu committed Oct 2, 2024
1 parent 82c55f3 commit 144b9ba
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public ResponseEntity<OrderDTO> submitOrder(@PathVariable Long orderId) {
return ResponseEntity.ok().body(order);
}

@AdminRequired()
@PostMapping(value = "/{orderId}/prepare")
@Operation(
summary = "Start preparing an order",
Expand All @@ -139,6 +140,7 @@ public ResponseEntity<OrderDTO> startPreparingOrder(@PathVariable Long orderId)
return ResponseEntity.ok().body(order);
}

@AdminRequired()
@PostMapping(value = "/{orderId}/ready")
@Operation(
summary = "Finish preparing an order",
Expand Down

0 comments on commit 144b9ba

Please sign in to comment.