Skip to content

Commit dad54a6

Browse files
committed
feat: add feedback (finally)
1 parent 84d4d81 commit dad54a6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/zadudoder/spmhelper/utils/SPmHelperApi.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
public class SPmHelperApi {
2121
private static final String API_BASE = "https://api.spmhelper.ru/api";
22-
private static final String FEEDBACK_API = "http://127.0.0.1:7000/api";
2322
private static final HttpClient httpClient = HttpClient.newBuilder()
2423
.version(HttpClient.Version.HTTP_2)
2524
.connectTimeout(Duration.ofSeconds(10))
@@ -128,7 +127,7 @@ public static CompletableFuture<HttpResponse<String>> sendFeedback(String name,
128127
json.addProperty("name", name);
129128
json.addProperty("comment", comment);
130129
HttpRequest request = HttpRequest.newBuilder()
131-
.uri(URI.create(FEEDBACK_API + "/feedback/send"))
130+
.uri(URI.create(API_BASE + "/feedback/send"))
132131
.header("Content-Type", "application/json")
133132
.POST(HttpRequest.BodyPublishers.ofString(json.toString()))
134133
.build();

0 commit comments

Comments
 (0)