[pulsar-function] fix worker-stats broken admin-api
*/
package org.apache.pulsar.functions.worker.rest;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
import org.apache.pulsar.functions.worker.rest.api.FunctionsMetricsResource;
import org.apache.pulsar.functions.worker.rest.api.v2.FunctionApiV2Resource;
+import org.apache.pulsar.functions.worker.rest.api.v2.WorkerApiV2Resource;
+import org.apache.pulsar.functions.worker.rest.api.v2.WorkerStatsApiV2Resource;
import org.apache.pulsar.functions.worker.rest.api.v3.FunctionApiV3Resource;
import org.apache.pulsar.functions.worker.rest.api.v3.SinkApiV3Resource;
import org.apache.pulsar.functions.worker.rest.api.v3.SourceApiV3Resource;
-import org.apache.pulsar.functions.worker.rest.api.v2.WorkerApiV2Resource;
import org.glassfish.jersey.media.multipart.MultiPartFeature;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
public final class Resources {
private Resources() {
@@ -40,6 +41,7 @@ public final class Resources {
Arrays.asList(
FunctionApiV2Resource.class,
WorkerApiV2Resource.class,
+ WorkerStatsApiV2Resource.class,
MultiPartFeature.class
));
}
