Basic export function for #2667

This commit is contained in:
James Cole
2019-12-27 10:59:31 +01:00
parent 77647a8597
commit c06b9d8045
10 changed files with 484 additions and 76 deletions

View File

@@ -563,7 +563,7 @@ try {
'export.index',
function (BreadcrumbsGenerator $breadcrumbs) {
$breadcrumbs->parent('home');
$breadcrumbs->push(trans('firefly.export_data'), route('export.index'));
$breadcrumbs->push(trans('firefly.export_data_bc'), route('export.index'));
}
);

View File

@@ -22,14 +22,3 @@
declare(strict_types=1);
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/

View File

@@ -488,7 +488,17 @@ Route::group(
}
);
/**
* Export controller
*/
Route::group(
['middleware' => 'user-full-auth', 'namespace' => 'FireflyIII\Http\Controllers', 'prefix' => 'export', 'as' => 'export.'], static function () {
// index
Route::get('', ['uses' => 'Export\IndexController@index', 'as' => 'index']);
Route::get('export', ['uses' => 'Export\IndexController@export', 'as' => 'export']);
});
/**
* Import Controller
*/