Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

Move webhook routes into dedicated routes/webhook.php

Paulo Castellanocc61adbac263
diff --git a/routes/web.php b/routes/web.php
index 77575c38a..81265863a 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -2,10 +2,6 @@
declare(strict_types=1);
-use App\Http\Controllers\Webhooks\TelegramWebhookController;
-use Illuminate\Support\Facades\Route;
-
-Route::post('telegram/webhook', [TelegramWebhookController::class, 'handle'])->name('telegram.webhook');
-
+require __DIR__.'/webhook.php';
require __DIR__.'/auth.php';
require __DIR__.'/app.php';
diff --git a/routes/webhook.php b/routes/webhook.php
new file mode 100644
index 000000000..ecd2fee89
--- /dev/null
+++ b/routes/webhook.php
@@ -0,0 +1,8 @@
+<?php
+
+declare(strict_types=1);
+
+use App\Http\Controllers\Webhooks\TelegramWebhookController;
+use Illuminate\Support\Facades\Route;
+
+Route::post('telegram/webhook', [TelegramWebhookController::class, 'handle'])->name('telegram.webhook');