123456789101112131415161718192021222324252627282930313233343536 |
- <?php
-
- /*
- |--------------------------------------------------------------------------
- | Web Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register web routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | contains the "web" middleware group. Now create something great!
- |
- */
-
- Route::get('/', function () {
- return view('welcome');
- });
-
- Route::resource('course', 'CourseController')->except([
- 'create', 'edit'
- ]);
- Route::resource('professor', 'ProfessorController')->except([
- 'create', 'edit'
- ]);
- Route::resource('section', 'SectionController')->only([
- 'store', 'update', 'destroy'
- ]);
-
- // Auth::routes();
-
- Route::get('/dashboard', 'DashboardController@index')->name('dashboard');
- Route::get('/dashboard/schedule/{semester}', 'DashboardController@schedule')->name('schedule');
- Route::get('/dashboard/export/{semester}', 'DashboardController@export')->name('export');
-
- Route::get('/login', 'Auth\LoginController@redirectToProvider')->name('login');
- Route::get('/callback', 'Auth\LoginController@handleProviderCallback')->name('callback');
- Route::get('/logout', 'Auth\LoginController@logout')->name('logout');
|