mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Expand webhook code.
This commit is contained in:
@@ -1228,6 +1228,22 @@ try {
|
||||
}
|
||||
);
|
||||
|
||||
// webhooks
|
||||
Breadcrumbs::for(
|
||||
'webhooks.index',
|
||||
static function (Generator $breadcrumbs): void {
|
||||
$breadcrumbs->parent('index');
|
||||
$breadcrumbs->push(trans('firefly.webhooks_breadcrumb'), route('webhooks.index'));
|
||||
}
|
||||
);
|
||||
Breadcrumbs::for(
|
||||
'webhooks.create',
|
||||
static function (Generator $breadcrumbs): void {
|
||||
$breadcrumbs->parent('index');
|
||||
$breadcrumbs->push(trans('firefly.webhooks_create_breadcrumb'), route('webhooks.create'));
|
||||
}
|
||||
);
|
||||
|
||||
} catch (DuplicateBreadcrumbException $e) {
|
||||
// @ignoreException
|
||||
}
|
||||
|
@@ -1091,6 +1091,7 @@ Route::group(
|
||||
['middleware' => 'user-full-auth', 'namespace' => 'FireflyIII\Http\Controllers\Webhooks', 'prefix' => 'webhooks', 'as' => 'webhooks.'],
|
||||
static function () {
|
||||
Route::get('index', ['uses' => 'IndexController@index', 'as' => 'index']);
|
||||
Route::get('create', ['uses' => 'CreateController@index', 'as' => 'create']);
|
||||
}
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user