fix: webhook require path — one level up not two (was causing 500 on all deliveries)

This commit is contained in:
2026-05-31 05:18:41 +00:00
parent 132ac748eb
commit 0b42e21a1b
+1 -1
View File
@@ -7,7 +7,7 @@
* WEBHOOK_SECRET is loaded from api/config.php (gitignored) — never hardcoded here. * WEBHOOK_SECRET is loaded from api/config.php (gitignored) — never hardcoded here.
*/ */
require_once __DIR__ . '/../../api/config.php'; require_once __DIR__ . '/../api/config.php';
if (!defined('WEBHOOK_SECRET')) { if (!defined('WEBHOOK_SECRET')) {
http_response_code(500); http_response_code(500);
echo json_encode(['error' => 'Webhook not configured']); echo json_encode(['error' => 'Webhook not configured']);