web.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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. /* ------------------------------------------------------------------------
  13. | Public routing */
  14. Route::get('/', 'UserController@signin');
  15. Route::get('signin', 'UserController@signin');
  16. Route::get('signup', 'UserController@signup');
  17. Route::post('authenticate', 'UserController@authenticate');
  18. Route::post('adduser', 'UserController@addUser');
  19. // ------------------------------------------------------------------------
  20. /* ------------------------------------------------------------------------
  21. | Admin routing */
  22. Route::prefix('admin')->middleware('myuser.auth')->group( function() {
  23. Route::get('welcome', 'UserController@welcome');
  24. Route::get('formpassword', 'UserController@formpassword');
  25. Route::post('changepassword', 'UserController@changePassword');
  26. Route::get('deleteuser', 'UserController@deleteUser');
  27. Route::get('signout', 'UserController@signout');
  28. });
  29. // ------------------------------------------------------------------------