OTC API-Endpunkt korrigieren

This commit is contained in:
2026-06-15 14:17:42 +02:00
parent fb812e147e
commit dcded917a9
+1 -1
View File
@@ -457,7 +457,7 @@ function render_auth_home_page(array $user, array $otcProducts = []): void
echo " submitBtn.disabled = true;"; echo " submitBtn.disabled = true;";
echo " clearError();"; echo " clearError();";
echo " try {"; echo " try {";
echo " const response = await fetch('/public/api/otc-order.php', {"; echo " const response = await fetch('/api/otc-order.php', {";
echo " method: 'POST',"; echo " method: 'POST',";
echo " headers: { 'Content-Type': 'application/json' },"; echo " headers: { 'Content-Type': 'application/json' },";
echo " body: JSON.stringify(orderData)"; echo " body: JSON.stringify(orderData)";