Nessuna descrizione

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. Route::resource('user', 'UserController')->only([
  24. 'create', 'store',
  25. ]);
  26. // Auth::routes();
  27. Route::get('/dashboard', 'DashboardController@index')->name('dashboard');
  28. Route::get('/dashboard/add-user', 'DashboardController@addUser')->name('addUser');
  29. Route::post('/dashboard/schedule/{semester}', 'DashboardController@schedule')->name('schedule');
  30. Route::post('/dashboard/export/{semester}', 'DashboardController@export')->name('export');
  31. Route::post('/dashboard/clone/{semester}', 'DashboardController@cloneSemester')->name('cloneSemester');
  32. Route::get('/dashboard/export-courses', 'DashboardController@exportCourses')->name('exportCourses');
  33. Route::get('/login', 'Auth\LoginController@redirectToProvider')->name('login');
  34. Route::get('/callback', 'Auth\LoginController@handleProviderCallback')->name('callback');
  35. Route::get('/logout', 'Auth\LoginController@logout')->name('logout');