web.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. //
  17. //Route::get("basic", function () {
  18. // echo ("halo");
  19. // return "halo";
  20. //});
  21. //
  22. //Route::get("a", function () {
  23. // return "halo";
  24. //});
  25. Route::get("createUser", "UserController@CreateUser");
  26. Route::get("modifyUser", "UserController@ModifyUser");
  27. Route::get("delUser", "UserController@DelUser");
  28. Route::get("grantPrivilege", "PermissionController@GrantPrivilege");
  29. // action bar
  30. Route::get("addActionBar", "ActionBarController@AddActionBar");
  31. Route::get("modifyActionBar", "ActionBarController@ModifyActionBar");
  32. Route::get("deleteActionBar", "ActionBarController@DeleteActionBar");
  33. Route::get("loadActionBar", "ActionBarController@LoadActionBar");