Refactore Profile controllers and routes

This commit is contained in:
Bubka
2020-03-03 22:09:06 +01:00
parent 284a9f75b2
commit 7090cd8b33
8 changed files with 98 additions and 75 deletions

View File

@@ -27,12 +27,12 @@ Route::group(['middleware' => 'guest:api'], function () {
Route::group(['middleware' => 'auth:api'], function() {
Route::post('logout', 'UserController@logout');
Route::patch('password', 'UserController@updatePassword');
Route::patch('user', 'UserController@update');
Route::get('user', 'UserController@getDetails');
Route::get('settings', 'SettingController@index');
Route::post('settings', 'SettingController@store');
Route::get('profile/account', 'Profile\AccountController@show');
Route::patch('profile/account', 'Profile\AccountController@update');
Route::patch('profile/password', 'Profile\PasswordController@update');
Route::get('profile/settings', 'Profile\SettingController@index');
Route::post('profile/settings', 'Profile\SettingController@store');
Route::delete('twofaccounts/batch', 'TwoFAccountController@batchDestroy');
Route::apiResource('twofaccounts', 'TwoFAccountController');