mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Move some routes around.
This commit is contained in:
parent
3adccff611
commit
0d7ac5f1d8
@ -25,10 +25,12 @@ Route::group(
|
|||||||
// display error:
|
// display error:
|
||||||
Route::get('/error', 'HomeController@displayError');
|
Route::get('/error', 'HomeController@displayError');
|
||||||
|
|
||||||
|
Route::get('/logout', ['uses' => 'Auth\AuthController@logout', 'as' => 'logout']);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
// routes that can be accessed without being logged using two factor.
|
||||||
Route::group(
|
Route::group(
|
||||||
['middleware' => 'web-auth-no-two-factor'], function () {
|
['middleware' => 'web-auth-no-two-factor'], function () {
|
||||||
Route::get('/two-factor', ['uses' => 'Auth\TwoFactorController@index', 'as' => 'two-factor']);
|
Route::get('/two-factor', ['uses' => 'Auth\TwoFactorController@index', 'as' => 'two-factor']);
|
||||||
@ -38,6 +40,17 @@ Route::group(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// routes that can only be accessed without having your account confirmed.
|
||||||
|
Route::group(
|
||||||
|
['middleware' => 'web-auth-no-confirm'], function () {
|
||||||
|
//
|
||||||
|
Route::get('/confirm-your-account', ['uses' => 'Auth\ConfirmationController@confirmationError', 'as' => 'confirmation_error']);
|
||||||
|
Route::get('/resend-confirmation', ['uses' => 'Auth\ConfirmationController@resendConfirmation', 'as' => 'resend_confirmation']);
|
||||||
|
Route::get('/confirmation/{code}', ['uses' => 'Auth\ConfirmationController@doConfirmation', 'as' => 'do_confirm_account']);
|
||||||
|
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
Route::group(
|
Route::group(
|
||||||
['middleware' => ['web-auth-range']], function () {
|
['middleware' => ['web-auth-range']], function () {
|
||||||
@ -351,12 +364,6 @@ Route::group(
|
|||||||
Route::post('/transaction/destroy/{tj}', ['uses' => 'TransactionController@destroy', 'as' => 'transactions.destroy']);
|
Route::post('/transaction/destroy/{tj}', ['uses' => 'TransactionController@destroy', 'as' => 'transactions.destroy']);
|
||||||
Route::post('/transaction/reorder', ['uses' => 'TransactionController@reorder', 'as' => 'transactions.reorder']);
|
Route::post('/transaction/reorder', ['uses' => 'TransactionController@reorder', 'as' => 'transactions.reorder']);
|
||||||
|
|
||||||
/**
|
|
||||||
* Auth\Auth Controller
|
|
||||||
*/
|
|
||||||
Route::get('/logout', ['uses' => 'Auth\AuthController@logout', 'as' => 'logout']);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user