-
Notifications
You must be signed in to change notification settings - Fork 2
/
web.php
49 lines (38 loc) · 1.51 KB
/
web.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?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::get('/selectroommates', function () {
// return view('selectroommates');
// });
Route::get('/searchroommates', function () {
return view('searchroommates');
});
// Route::get('/addrooms', 'AdminController@addrooms');
Auth::routes();
Route::get('/home', 'HomeController@index')->middleware('auth')->name('home');
Route::get('/searchroommates', 'SearchController@search')->middleware('auth');
Route::post('/selectroommates/{user}', 'HomeController@update_utr')->middleware('auth')->name('update_utr');
Route::post('/home/{user}', 'HomeController@update_book_room')->middleware('auth')->name('update_book_room');
Route::get('/verifyresults', 'AdminController@verify_results')->
middleware('is_admin')
->name('admin');
Route::get('/verifyfees', 'AdminController@verify_fees')->
middleware('is_admin')
;
Route::patch('/verifyresults/{user}', 'AdminController@update_result_status')->
middleware('is_admin')
;
Route::patch('/verifyfees/{user}', 'AdminController@update_fee_status')->
middleware('is_admin')
;