web.php 811 B

12345678910111213141516171819202122232425262728293031
  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("addUser", "UserController@AddUser");
  26. Route::get("delUser", "UserController@DelUser");
  27. Route::get("grantPrivilege", "PermissionController@GrantPrivilege");