Commit 6fdd862c authored by Darrick Yong's avatar Darrick Yong

add deleteById route

parent 0f30aea9
......@@ -38,4 +38,10 @@ public class WarehouseController {
return orderService.updateOrder(order, id);
}
@CrossOrigin
@DeleteMapping(value = "/orders/{id}")
public Mono<Void> deleteOrder(@PathVariable(value = "id") String id) {
return orderService.deleteOrder(id);
}
}
......@@ -43,6 +43,9 @@ public class WarehouseOrderService {
}
public Mono<Void> deleteOrder(String id) {
return orderRepository.deleteById(id);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment