Skip to content

Commit 56864d7

Browse files
author
jianggang
committed
fix: change example featureprobe.io server url
1 parent 1078bb2 commit 56864d7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public class Demo {
6666
// FeatureProbe server URL for local docker
6767
// .remoteUri("http://127.0.0.1:4007")
6868
// FeatureProbe server URL for featureprobe.io
69-
.eventUrl(new URL("https://featureprobe.io/api/server/events"))
70-
.synchronizerUrl(new URL("https://featureprobe.io/api/server/toggles"))
69+
.eventUrl(new URL("https://featureprobe.io/server/api/events"))
70+
.synchronizerUrl(new URL("https://featureprobe.io/server/api/server-sdk/toggles"))
7171
.pollingMode(Duration.ofSeconds(3))
7272
.useMemoryRepository()
7373
.build();
@@ -87,8 +87,8 @@ public class Demo {
8787
// FeatureProbe server URL for local docker
8888
// .remoteUri("http://127.0.0.1:4007")
8989
// FeatureProbe server URL for featureprobe.io
90-
.eventUrl(new URL("https://featureprobe.io/api/server/events"))
91-
.synchronizerUrl(new URL("https://featureprobe.io/api/server/toggles"))
90+
.eventUrl(new URL("https://featureprobe.io/server/api/events"))
91+
.synchronizerUrl(new URL("https://featureprobe.io/server/api/server-sdk/toggles"))
9292
.pollingMode(Duration.ofSeconds(3))
9393
.useMemoryRepository()
9494
.build();

src/main/java/com/featureprobe/sdk/example/FeatureProbeDemo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public class FeatureProbeDemo {
1818
// private static final String FEATURE_PROBE_SERVER_URL = "http://localhost:4007";
1919

2020
// FeatureProbe server URL for featureprobe.io
21-
private static final String FEATURE_PROBE_IO_EVENT_URL = "https://featureprobe.io/api/server/events";
22-
private static final String FEATURE_PROBE_IO_synchronizer_URL = "https://featureprobe.io/api/server/toggles";
21+
private static final String FEATURE_PROBE_IO_EVENT_URL = "https://featureprobe.io/server/api/events";
22+
private static final String FEATURE_PROBE_IO_synchronizer_URL = "https://featureprobe.io/server/api/server-sdk/toggles";
2323

2424
// Server Side SDK Key for your project and environment
2525
public static final String SERVER_SDK_KEY = "server-8ed48815ef044428826787e9a238b9c6a479f98c";

0 commit comments

Comments
 (0)