<?php
Route::middleware('auth')->group(function () {
    Route::group(['namespace' => 'Profile'], function() {
        // view    
        Route::view('/profile', 'profile.profile')->name('profile');
        // api
        Route::group(['prefix' => 'api/profile'], function() {
            Route::get('/getAuthUser',
                       'ProfileController@getAuthUser');
            Route::put('/updateAuthUser',
                       'ProfileController@updateAuthUser');
            Route::put('/updateAuthUserPassword',
                       'ProfileController@updateAuthUserPassword');
        });
    });
});