mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
fix: webhook require path — one level up not two (was causing 500 on all deliveries)
This commit is contained in:
@@ -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']);
|
||||||
|
|||||||
Reference in New Issue
Block a user