class RouteServiceImpl implements RouteService {

    @Override
    public Response getAllRoutes(HttpHeaders headers) {
        ArrayList<Route> routes = routeRepository.findAll();
        if (routes != null && !routes.isEmpty()) {
            return new Response<>(1, success, routes);
        } else {
            return new Response<>(0, "No Content", null);
        }
    }

}