docs: @Override
  	protected void respondAsLeader(ChannelHandlerContext channelHandlerContext, RoutedRequest routedRequest, T gateway) throws Exception {
  		final HttpRequest request = routedRequest.getRequest();
  		final String requestPath;
  
  		// make sure we request the "index.html" in case there is a directory request
  		if (routedRequest.getPath().endsWith("/")) {
  			requestPath = routedRequest.getPath() + "index.html";
  		}
  		// in case the files being accessed are logs or stdout files, find appropriate paths.
  		else if (routedRequest.getPath().equals("/jobmanager/log") || routedRequest.getPath().equals("/jobmanager/stdout")) {
  			requestPath = "";
  		} else {
  			requestPath = routedRequest.getPath();
  		}
  
  		respondToRequest(channelHandlerContext, request, requestPath);
  	}