Mera felsökning

This commit is contained in:
2024-07-16 23:36:59 +02:00
parent 3fef179723
commit 1b7142f157
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ function sendMessage() {
const xhr = new XMLHttpRequest();
// Configure the request
xhr.open('POST', '/api/chat'); // Set method to POST and URL
xhr.open('POST', '/chat'); // Set method to POST and URL
xhr.setRequestHeader('Content-Type', 'application/json'); // Essential for sending JSON
// Handle response data