up
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../config/config_enhanced.php';
|
||||
require_once __DIR__ . '/../config/config.php';
|
||||
require_once __DIR__ . '/../api/webhook.php';
|
||||
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
|
||||
try {
|
||||
$w = new WhatsAppWebhook();
|
||||
echo json_encode(['ok' => true, 'message' => 'Webhook class instantiated successfully']);
|
||||
} catch (Throwable $t) {
|
||||
http_response_code(500);
|
||||
error_log('[debug_webhook_init] Throwable: ' . $t->getMessage());
|
||||
error_log($t->getTraceAsString());
|
||||
echo json_encode(['ok' => false, 'error' => $t->getMessage(), 'trace' => $t->getTraceAsString()]);
|
||||
}
|
||||
Reference in New Issue
Block a user