@Override
    public HttpRequestMessage apply(HttpRequestMessage request) {
        SessionContext context = request.getContext();
        String path = request.getPath();

        // Route healthchecks to the healthcheck endpoint.
        if (path.equalsIgnoreCase("/healthcheck")) {
            context.setEndpoint(Healthcheck.class.getCanonicalName());
        } else {
            context.setEndpoint(ProxyEndpoint.class.getCanonicalName());
            context.setRouteVIP("api");
        }

        return request;
    }
Routes configuration

Author: Arthur Gonigberg
Date: November 21, 2017
zuul-sample/src/main/java/com/netflix/zuul/sample/filters/inbound/Routes.java