From e15ff0baf87b5c8b819cf88cc262353b719821f1 Mon Sep 17 00:00:00 2001 From: mwpn Date: Mon, 26 Jan 2026 09:47:52 +0700 Subject: [PATCH] Fix route conflict: Remove duplicate OPTIONS handler for telegram webhook --- public/index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/index.php b/public/index.php index 3eeb6b8..0329e5d 100644 --- a/public/index.php +++ b/public/index.php @@ -218,9 +218,7 @@ $app->post('/site/approve/{id_trx}', [$siteController, 'approve']); // Telegram Bot Routes $telegramBotController = new \App\Controllers\TelegramBotController(); $app->post('/telegram/webhook', [$telegramBotController, 'webhook']); -$app->options('/telegram/webhook', function (Request $request, Response $response) { - return $response->withStatus(200); -}); +// Note: OPTIONS request sudah ditangani oleh route generic di line 56 // Run app $app->run();