Remove routes that enable/disable/default a currency.

This commit is contained in:
James Cole 2023-10-22 06:57:15 +02:00
parent 97dfdd5c5d
commit 9d5b028a5f
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -333,19 +333,16 @@ Route::group(
* Currency Controller.
*/
Route::group(
['middleware' => 'user-full-auth', 'namespace' => 'FireflyIII\Http\Controllers', 'prefix' => 'currencies', 'as' => 'currencies.'],
['middleware' => 'user-full-auth', 'namespace' => 'FireflyIII\Http\Controllers\TransactionCurrency', 'prefix' => 'currencies', 'as' => 'currencies.'],
static function () {
Route::get('', ['uses' => 'CurrencyController@index', 'as' => 'index']);
Route::get('create', ['uses' => 'CurrencyController@create', 'as' => 'create']);
Route::get('edit/{currency}', ['uses' => 'CurrencyController@edit', 'as' => 'edit']);
Route::get('delete/{currency}', ['uses' => 'CurrencyController@delete', 'as' => 'delete']);
Route::post('default', ['uses' => 'CurrencyController@defaultCurrency', 'as' => 'default']);
Route::post('enable', ['uses' => 'CurrencyController@enableCurrency', 'as' => 'enable']);
Route::post('disable', ['uses' => 'CurrencyController@disableCurrency', 'as' => 'disable']);
Route::get('', ['uses' => 'IndexController@index', 'as' => 'index']);
Route::get('create', ['uses' => 'CreateController@create', 'as' => 'create']);
Route::get('edit/{currency}', ['uses' => 'EditController@edit', 'as' => 'edit']);
Route::get('delete/{currency}', ['uses' => 'DeleteController@delete', 'as' => 'delete']);
Route::post('store', ['uses' => 'CurrencyController@store', 'as' => 'store']);
Route::post('update/{currency}', ['uses' => 'CurrencyController@update', 'as' => 'update']);
Route::post('destroy/{currency}', ['uses' => 'CurrencyController@destroy', 'as' => 'destroy']);
Route::post('store', ['uses' => 'CreateController@store', 'as' => 'store']);
Route::post('update/{currency}', ['uses' => 'EditController@update', 'as' => 'update']);
Route::post('destroy/{currency}', ['uses' => 'EditController@destroy', 'as' => 'destroy']);
}
);