Skip to content

Commit 9881971

Browse files
committed
Removed singleton post endpoit
1 parent b33aa5b commit 9881971

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

memex/src/main/java/com/johnlpage/memex/VehicleInspection/controller/VehicleInspectionController.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,6 @@ public ResponseEntity<Vehicle> vehicleById(@PathVariable Long id) {
7070
.orElse(ResponseEntity.notFound().build());
7171
}
7272

73-
@PostMapping("/inspection")
74-
public void oneinspection(@RequestBody VehicleInspection inspection) {
75-
LOG.warn("Saving vehicle inspection: {}", inspection);
76-
try {
77-
vehicleInspectionRepository.save(inspection);
78-
}
79-
catch (Exception e) {
80-
LOG.error(e.getMessage());
81-
}
82-
}
8373

8474
/**
8575
* This could be something that reads a file, or even from a Kafka Queue as long as it gets a

0 commit comments

Comments
 (0)