user.php 827 B

123456789101112131415
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::group(['domain' => env('APP_HOST'), 'prefix' => 'adminApi/user'],function (){
  4. Route::match(['get','post'],'list', 'UserController@getList')->name('adminApi.user.list');//获取后台账号列表
  5. Route::match(['get','post'],'info', 'UserController@getInfo')->name('adminApi.user.info');//获取详情
  6. Route::match(['get','post'],'save', 'UserController@save')->name('adminApi.user.save');//新增&编辑
  7. Route::match(['get','post'],'set_status', 'UserController@setStatus')->name('adminApi.user.set_status');//状态更新
  8. Route::match(['get','post'],'reset', 'UserController@resetPassword')->name('adminApi.user.reset');//重置密码
  9. Route::match(['get','post'],'destroys', 'UserController@destroys')->name('adminApi.user.destroys');//删除
  10. });