Route::get('/user/profile', 'UserController@profile');
Route::post('/user/updateprofile', 'UserController@updateProfile');
Route::get('/clear-cache', function () {
$exitCode = Artisan::call('cache:clear');
// return what you want
});
Route::group(['middleware' => 'admin'], function () {
Route::get('/users/list', 'UserController@listUsers');
Route::get('/users/data', 'UserController@data');
Route::post('/user', 'UserController@getUserById');
Route::post('/user/activate', 'UserController@activate');
});
Route::post('/user/updateprofile', 'UserController@updateProfile');
Route::get('/clear-cache', function () {
$exitCode = Artisan::call('cache:clear');
// return what you want
});
Route::group(['middleware' => 'admin'], function () {
Route::get('/users/list', 'UserController@listUsers');
Route::get('/users/data', 'UserController@data');
Route::post('/user', 'UserController@getUserById');
Route::post('/user/activate', 'UserController@activate');
});
No comments:
Post a Comment