Skip to content
Snippets Groups Projects

Cleanup

Merged Jonathan Schneider requested to merge cleanup into main
6 files
+ 4
21
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -7,6 +7,7 @@ import org.geolatte.geom.Polygon;
import org.geolatte.geom.crs.CoordinateReferenceSystem;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
@@ -20,6 +21,7 @@ import java.util.stream.Collectors;
import static org.geolatte.geom.builder.DSL.*;
import static org.geolatte.geom.builder.DSL.g;
@Service
@RequestMapping("api/point")
public class PointController {
@@ -52,14 +54,6 @@ public class PointController {
.collect(Collectors.toList());
}
@GetMapping("stops")
public List<PointDto> getAllStops() {
return pointService.getAllStops()
.stream()
.map(dtoService::convertPoint)
.collect(Collectors.toList());
}
@GetMapping(path = "{id}")
public PointDto getPointById(@PathVariable("id") Long id) {
return pointService.getPointById(id)
Loading