mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-22 22:30:05 +01:00
Use prefix in Laravel routes definition
This commit is contained in:
parent
05f1813a25
commit
1368f2eba0
@ -28,11 +28,13 @@
|
||||
|
||||
Route::post('logout', 'Auth\LoginController@logout');
|
||||
|
||||
Route::get('settings/account', 'Settings\AccountController@show');
|
||||
Route::patch('settings/account', 'Settings\AccountController@update');
|
||||
Route::patch('settings/password', 'Settings\PasswordController@update');
|
||||
Route::get('settings/options', 'Settings\OptionController@index');
|
||||
Route::post('settings/options', 'Settings\OptionController@store');
|
||||
Route::prefix('settings')->group(function () {
|
||||
Route::get('account', 'Settings\AccountController@show');
|
||||
Route::patch('account', 'Settings\AccountController@update');
|
||||
Route::patch('password', 'Settings\PasswordController@update');
|
||||
Route::get('options', 'Settings\OptionController@index');
|
||||
Route::post('options', 'Settings\OptionController@store');
|
||||
});
|
||||
|
||||
Route::delete('twofaccounts/batch', 'TwoFAccountController@batchDestroy');
|
||||
Route::apiResource('twofaccounts', 'TwoFAccountController');
|
||||
|
Loading…
Reference in New Issue
Block a user