Skip to content

Commit e6c6b9f

Browse files
authored
Merge pull request #8 from pxthinh/feature/webhook_1
wip: update route and delete comment for action
2 parents 3a330db + 7abdf47 commit e6c6b9f

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

routes/bot.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
| Bot Routes
99
|--------------------------------------------------------------------------
1010
|
11-
| Here is where you can register web routes for your application. These
11+
| Here is where you can register bot routes for your application. These
1212
| routes are loaded by the RouteServiceProvider and all of them will
13-
| be assigned to the "web" middleware group. Make something great!
13+
| be assigned to the "bot" middleware group. Make something great!
1414
|
1515
*/
1616

1717
Route::prefix('telegram-git-notifier')->group(function () {
18-
Route::get('/set-webhook', [WebhookAction::class, 'set'])->name('set-webhook');
19-
Route::get('/delete-webhook', [WebhookAction::class, 'delete'])->name('delete-webhook');
18+
Route::prefix('webhook')->group(function () {
19+
Route::get('/set', [WebhookAction::class, 'set'])->name('webhook.set');
20+
Route::get('/delete', [WebhookAction::class, 'delete'])->name('webhook.delete');
21+
});
2022
});

src/Http/Actions/WebhookAction.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
use LbilTech\TelegramGitNotifier\Services\WebhookService;
66

7-
/**
8-
* Class WebhookAction.
9-
*/
107
class WebhookAction
118
{
129
protected string $token;

0 commit comments

Comments
 (0)