routes.php 957 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Application Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register all of the routes for an application.
  8. | It's a breeze. Simply tell Laravel the URIs it should respond to
  9. | and give it the controller to call when that URI is requested.
  10. |
  11. */
  12. //Admin
  13. Route::group(['namespace'=>'Admin','middleware'=>['admin.login']],function() {
  14. Route::get('/', 'IndexController@index');
  15. Route::get('/change_pswd', 'IndexController@change_pswd');
  16. Route::post('/pswd', 'IndexController@pswd');
  17. Route::get('/user_list', 'UserController@user_list');
  18. Route::resource('user', 'UserController');
  19. Route::get('/out', 'IndexController@out');
  20. Route::get('/table','TableController@index');
  21. Route::get('/table/{id}','TableController@show');
  22. });
  23. Route::any('/login', 'Admin\IndexController@login');