暂无描述

web.php 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 App\Http\Controllers\DashboardController;
  13. Route::get('/', 'HomeController@index')->name('home');
  14. Route::resource('course', 'CourseController')->except([
  15. 'create', 'edit'
  16. ]);
  17. Route::resource('professor', 'ProfessorController')->except([
  18. 'create', 'edit'
  19. ]);
  20. Route::resource('section', 'SectionController')->only([
  21. 'store', 'update', 'destroy'
  22. ]);
  23. // Auth::routes();
  24. Route::get('/dashboard', 'DashboardController@index')->name('dashboard');
  25. Route::post('/dashboard/schedule/{semester}', 'DashboardController@schedule')->name('schedule');
  26. Route::post('/dashboard/export/{semester}', 'DashboardController@export')->name('export');
  27. Route::post('/dashboard/clone/{semester}', 'DashboardController@cloneSemester')->name('cloneSemester');
  28. Route::post('/dashboard/add-user', 'DashboardController@addUser')->name('addUser');
  29. Route::get('/dashboard/export-courses', 'DashboardController@exportCourses')->name('exportCourses');
  30. Route::get('/login', 'Auth\LoginController@redirectToProvider')->name('login');
  31. Route::get('/callback', 'Auth\LoginController@handleProviderCallback')->name('callback');
  32. Route::get('/logout', 'Auth\LoginController@logout')->name('logout');