mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Attachment controller basic index.
This commit is contained in:
@@ -248,6 +248,14 @@ Breadcrumbs::register(
|
||||
);
|
||||
|
||||
// ATTACHMENTS
|
||||
Breadcrumbs::register(
|
||||
'attachments.index',
|
||||
function (BreadCrumbsGenerator $breadcrumbs) {
|
||||
$breadcrumbs->parent('home');
|
||||
$breadcrumbs->push(trans('firefly.attachments'), route('attachments.index'));
|
||||
}
|
||||
);
|
||||
|
||||
Breadcrumbs::register(
|
||||
'attachments.edit',
|
||||
function (BreadCrumbsGenerator $breadcrumbs, Attachment $attachment) {
|
||||
|
||||
@@ -140,6 +140,7 @@ Route::group(
|
||||
*/
|
||||
Route::group(
|
||||
['middleware' => 'user-full-auth', 'namespace' => 'FireflyIII\Http\Controllers', 'prefix' => 'attachments', 'as' => 'attachments.'], function () {
|
||||
Route::get('', ['uses' => 'AttachmentController@index', 'as' => 'index']);
|
||||
Route::get('edit/{attachment}', ['uses' => 'AttachmentController@edit', 'as' => 'edit']);
|
||||
Route::get('delete/{attachment}', ['uses' => 'AttachmentController@delete', 'as' => 'delete']);
|
||||
Route::get('download/{attachment}', ['uses' => 'AttachmentController@download', 'as' => 'download']);
|
||||
|
||||
Reference in New Issue
Block a user