diff --git a/routes/bot.php b/routes/bot.php index dcdf28f..8b8757a 100644 --- a/routes/bot.php +++ b/routes/bot.php @@ -8,13 +8,15 @@ | Bot Routes |-------------------------------------------------------------------------- | -| Here is where you can register web routes for your application. These +| Here is where you can register bot routes for your application. These | routes are loaded by the RouteServiceProvider and all of them will -| be assigned to the "web" middleware group. Make something great! +| be assigned to the "bot" middleware group. Make something great! | */ Route::prefix('telegram-git-notifier')->group(function () { - Route::get('/set-webhook', [WebhookAction::class, 'set'])->name('set-webhook'); - Route::get('/delete-webhook', [WebhookAction::class, 'delete'])->name('delete-webhook'); + Route::prefix('webhook')->group(function () { + Route::get('/set', [WebhookAction::class, 'set'])->name('webhook.set'); + Route::get('/delete', [WebhookAction::class, 'delete'])->name('webhook.delete'); + }); }); diff --git a/src/Http/Actions/WebhookAction.php b/src/Http/Actions/WebhookAction.php index 5f5196f..1399f4d 100644 --- a/src/Http/Actions/WebhookAction.php +++ b/src/Http/Actions/WebhookAction.php @@ -4,9 +4,6 @@ use LbilTech\TelegramGitNotifier\Services\WebhookService; -/** - * Class WebhookAction. - */ class WebhookAction { protected string $token;