Changeset d9c4096 for routes/web.php
- Timestamp:
- 02/10/24 17:58:54 (11 months ago)
- Branches:
- main
- Children:
- 92df8cd
- Parents:
- 6dec591
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
routes/web.php
r6dec591 rd9c4096 6 6 use App\Http\Controllers\SessionsController; 7 7 use Illuminate\Support\Facades\Route; 8 use Illuminate\Support\Facades\Session; 8 9 9 10 /* … … 19 20 20 21 Route::get('/', function () { 22 if(Session::get('pe_id') == null) { 23 return view('login'); 24 } 21 25 return view('welcome'); 22 26 }); … … 38 42 39 43 Route::get('cases', [CrimeCaseController::class, 'cases'])->middleware('guest'); 40 Route::get('case ', [CrimeCaseController::class, 'case'])->middleware('guest');44 Route::get('case/{wildcard}', [CrimeCaseController::class, 'case'])->middleware('guest'); 41 45 42 46 Route::get('finished_cases', [CrimeCaseController::class, 'index'])->middleware('guest'); … … 46 50 Route::post('register-policeman', [OfficerController::class, 'register'])->middleware('guest'); 47 51 48 52 Route::get('/get_person/{{embg}}', [PeopleController::class, 'get_person'])->middleware('guest');
Note:
See TracChangeset
for help on using the changeset viewer.