web.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Web Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register web routes for your application. These
  8. | routes are loaded by the RouteServiceProvider within a group which
  9. | contains the "web" middleware group. Now create something great!
  10. |
  11. */
  12. //use Illuminate\Support\Facades\Route;
  13. Route::get('/', function () {
  14. return view('welcome');
  15. });
  16. //user
  17. Route::get("admin/createUser", "UserController@CreateUser");
  18. Route::get("admin/modifyUser", "UserController@ModifyUser");
  19. Route::get("admin/deleteUser", "UserController@DeleteUser");
  20. Route::get("listUser", "UserController@ListUser");
  21. // role
  22. Route::get("admin/createRole", "RoleController@CreateRole");
  23. Route::get("admin/modifyRole", "RoleController@ModifyRole");
  24. Route::get("admin/deleteRole", "RoleController@DeleteRole");
  25. Route::get("admin/listRole", "RoleController@ListRole");
  26. Route::get("admin/loadRoleActionBars", "PermissionController@LoadRoleActionBars");
  27. Route::get("loadRole", "RoleController@LoadRole");// 用户加载自己的角色
  28. Route::get("admin/loadRole", "RoleController@AdminLoadRole"); // 管理员加载指定用户的角色
  29. // user role
  30. Route::get("admin/assignRoleUser", "PermissionController@AssignRoleUser");
  31. Route::get("admin/loadRoleUsers", "RoleController@LoadRoleUsers");
  32. // user action bar
  33. Route::get("admin/assignActionBars", "PermissionController@AssignActionBars");
  34. Route::get("admin/assignUserRole", "PermissionController@AssignUserRole");
  35. Route::get("addUserActionBar", "UserActionBarController@AddUserActionBar");
  36. Route::get("removeUserActionBar", "UserActionBarController@RemoveUserActionBar");
  37. // group
  38. Route::get("createGroup", "GroupController@CreateGroup");
  39. Route::get("modifyGroup", "GroupController@ModifyGroup");
  40. Route::get("deleteGroup", "GroupController@DeleteGroup");
  41. // group user
  42. Route::get("groupAddUser", "GroupUserController@GroupAddUser");
  43. Route::get("groupRemoveUser", "GroupUserController@GroupRemoveUser");
  44. Route::get("grantPrivilege", "PermissionController@GrantPrivilege");
  45. // action bar
  46. Route::get("admin/addActionBar", "ActionBarController@AddActionBar");
  47. Route::get("admin/modifyActionBar", "ActionBarController@ModifyActionBar");
  48. Route::get("admin/deleteActionBar", "ActionBarController@DeleteActionBar");
  49. Route::get("admin/loadActionBar", "ActionBarController@LoadActionBar");