This commit is contained in:
2023-04-29 20:31:12 +02:00
parent e3664270c6
commit 5352ecd4c2

View File

@@ -27,7 +27,7 @@ public class WaypointController {
}
@GetMapping("/{location}/{id}")
public ResponseEntity<WaypointsEntity> getWaypointById(@PathVariable("location") String location, @PathVariable("id") Long id) {
public ResponseEntity<WaypointsEntity> getWaypoint(@PathVariable("location") String location, @PathVariable("id") Long id) {
WaypointsEntity waypoint = waypointService.getWaypointById(id);
if (waypoint != null) {
if (waypoint.getLocationName().equals(location)) {