fix search method

This commit is contained in:
2026-04-13 02:20:29 +02:00
parent 9acd0f36a2
commit c0cbb0ddb2
+3 -1
View File
@@ -2,7 +2,9 @@
async function apiRequest(action, params = {}) {
const response = await fetch('RequestHandler.php', {
method: 'POST',
headers: { 'Content-Type:': 'application/json' },
headers: {
'Content-Type': 'application/json' // J'ai enlevé le ":" après Type
},
body: JSON.stringify({ action, params })
});
return await response.json();