Skip to content

Commit 70cc4ba

Browse files
committed
minor fix
1 parent bd9f672 commit 70cc4ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎spring-security-rest/src/main/java/org/baeldung/web/controller/CustomerController.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public Customer getCustomerById(@PathVariable final String customerId) {
3434
return customerService.getCustomerDetail(customerId);
3535
}
3636

37-
@RequestMapping(value = "/{customerId}/{orderId}")
37+
@RequestMapping(value = "/{customerId}/{orderId}", method = RequestMethod.GET)
3838
public Order getOrderById(@PathVariable final String customerId, @PathVariable final String orderId) {
3939
return orderService.getOrderByIdForCustomer(customerId, orderId);
4040
}

0 commit comments

Comments
 (0)