|
17 | 17 |
|
18 | 18 | $routePrefix = config('telegram-git-notifier.defaults.route_prefix');
|
19 | 19 |
|
20 |
| -Route::prefix($routePrefix)->group(function () use ($routePrefix) { |
21 |
| - Route::match(['get', 'post'], '/', IndexAction::class)->name("$routePrefix.index"); |
| 20 | +Route::prefix($routePrefix)->name("$routePrefix.")->group(function () { |
| 21 | + Route::match(['get', 'post'], '/', IndexAction::class)->name('index'); |
22 | 22 |
|
23 |
| - Route::prefix('webhook')->group(function () use ($routePrefix) { |
24 |
| - Route::get('set', [WebhookAction::class, 'set'])->name("$routePrefix.webhook.set"); |
25 |
| - Route::get('delete', [WebhookAction::class, 'delete'])->name("$routePrefix.webhook.delete"); |
26 |
| - Route::get('info', [WebhookAction::class, 'getWebHookInfo'])->name("$routePrefix.webhook.info"); |
27 |
| - Route::get('updates', [WebhookAction::class, 'getUpdates'])->name("$routePrefix.webhook.updates"); |
| 23 | + Route::prefix('webhook')->name('webhook.')->group(function () { |
| 24 | + Route::get('set', [WebhookAction::class, 'set'])->name('set'); |
| 25 | + Route::get('delete', [WebhookAction::class, 'delete'])->name('delete'); |
| 26 | + Route::get('info', [WebhookAction::class, 'getWebHookInfo'])->name('info'); |
| 27 | + Route::get('updates', [WebhookAction::class, 'getUpdates'])->name('updates'); |
28 | 28 | });
|
29 | 29 | });
|
0 commit comments