code: @GET
      public List<String> getRoutes() {
          List<Resource> resourceList = resourceContext.getResourceModel().getResources();
          List<String> routeList = Lists.newArrayList();
          for (Resource resource : resourceList) {
              String path = resource.getPath().startsWith("/") ? "" : "/" + resource.getPath();
              if (resource.getAllMethods().size() > 0) {
                  routeList.add(path);
              }
              routeList.addAll(
                      resource.getChildResources()
                              .stream()
                              .map(res -> path + (res.getPath().startsWith("/") ? "" : "/") + res.getPath())
                              .collect(Collectors.toList())
              );
          }
          return routeList;
      }
docs: <p>getRoutes.</p>
  
  @return a {@link java.util.List} object.