class RouteServiceImpl implements RouteService {

    @Override
    public Response deleteRoute(String routeId, HttpHeaders headers) {
        routeRepository.removeRouteById(routeId);
        Route route = routeRepository.findById(routeId);
        if (route == null) {
            return new Response<>(1, "Delete Success", routeId);
        } else {
            return new Response<>(0, "Delete failed, Reason unKnown with this routeId", routeId);
        }
    }

}