Update URI to point to Discord bot endpoint

Changed the URI in VerifyController to use the Discord bot's endpoint for form submission. This adjustment is part of the process to route form data correctly through the specified internal service.
This commit is contained in:
Teriuihi 2024-08-05 01:08:51 +02:00
parent 14f02e535f
commit d8ab42b09c

View File

@ -33,7 +33,8 @@ public class VerifyController {
.map(form -> {
try {
HttpRequest request = HttpRequest.newBuilder()
.uri(new URI("https://forms.alttd.com:8002/api/contact/submitContactForm"))//TODO get uri from form
//Discord bot url
.uri(new URI("http://discordbot:8001/api/contact/submitContactForm"))//TODO get uri from form
.header("Content-Type", "application/json;charset=UTF-8")
.POST(HttpRequest.BodyPublishers.ofString(form.toJsonString(), StandardCharsets.UTF_8))
.build();