mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Remove import code.
This commit is contained in:
@@ -546,42 +546,6 @@ Route::group(
|
||||
Route::get('export', ['uses' => 'Export\IndexController@export', 'as' => 'export']);
|
||||
}
|
||||
);
|
||||
/**
|
||||
* Import Controller.
|
||||
*/
|
||||
Route::group(
|
||||
['middleware' => 'user-full-auth', 'namespace' => 'FireflyIII\Http\Controllers', 'prefix' => 'import', 'as' => 'import.'],
|
||||
static function () {
|
||||
|
||||
// index
|
||||
Route::get('', ['uses' => 'Import\IndexController@index', 'as' => 'index']);
|
||||
|
||||
// create new job
|
||||
Route::get('create/{import_provider}', ['uses' => 'Import\IndexController@create', 'as' => 'create']);
|
||||
|
||||
// set global prerequisites for an import source, possible with a job already attached.
|
||||
Route::get('prerequisites/{import_provider}/{importJob?}', ['uses' => 'Import\PrerequisitesController@index', 'as' => 'prerequisites.index']);
|
||||
Route::post('prerequisites/{import_provider}/{importJob?}', ['uses' => 'Import\PrerequisitesController@post', 'as' => 'prerequisites.post']);
|
||||
|
||||
// configure a job:
|
||||
Route::get('job/configuration/{importJob}', ['uses' => 'Import\JobConfigurationController@index', 'as' => 'job.configuration.index']);
|
||||
Route::post('job/configuration/{importJob}', ['uses' => 'Import\JobConfigurationController@post', 'as' => 'job.configuration.post']);
|
||||
|
||||
// get status of a job. This is also the landing page of a job after job config is complete.
|
||||
Route::get('job/status/{importJob}', ['uses' => 'Import\JobStatusController@index', 'as' => 'job.status.index']);
|
||||
Route::get('job/json/{importJob}', ['uses' => 'Import\JobStatusController@json', 'as' => 'job.status.json']);
|
||||
|
||||
// start the job!
|
||||
Route::any('job/start/{importJob}', ['uses' => 'Import\JobStatusController@start', 'as' => 'job.start']);
|
||||
Route::any('job/store/{importJob}', ['uses' => 'Import\JobStatusController@store', 'as' => 'job.store']);
|
||||
|
||||
// download config:
|
||||
Route::get('download/{importJob}', ['uses' => 'Import\IndexController@download', 'as' => 'job.download']);
|
||||
|
||||
// callback URI for YNAB OAuth. Sadly, needs a custom solution.
|
||||
Route::get('ynab-callback', ['uses' => 'Import\CallbackController@ynab', 'as' => 'callback.ynab']);
|
||||
}
|
||||
);
|
||||
|
||||
/**
|
||||
* Help Controller.
|
||||
|
Reference in New Issue
Block a user