Changeset d9c4096 for routes/web.php


Ignore:
Timestamp:
02/10/24 17:58:54 (11 months ago)
Author:
bube-ristovska <ristovska725@…>
Branches:
main
Children:
92df8cd
Parents:
6dec591
Message:

Bug with embg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • routes/web.php

    r6dec591 rd9c4096  
    66use App\Http\Controllers\SessionsController;
    77use Illuminate\Support\Facades\Route;
     8use Illuminate\Support\Facades\Session;
    89
    910/*
     
    1920
    2021Route::get('/', function () {
     22    if(Session::get('pe_id') == null) {
     23        return view('login');
     24    }
    2125    return view('welcome');
    2226});
     
    3842
    3943Route::get('cases', [CrimeCaseController::class, 'cases'])->middleware('guest');
    40 Route::get('case', [CrimeCaseController::class, 'case'])->middleware('guest');
     44Route::get('case/{wildcard}', [CrimeCaseController::class, 'case'])->middleware('guest');
    4145
    4246Route::get('finished_cases', [CrimeCaseController::class, 'index'])->middleware('guest');
     
    4650Route::post('register-policeman', [OfficerController::class, 'register'])->middleware('guest');
    4751
    48 
     52Route::get('/get_person/{{embg}}', [PeopleController::class, 'get_person'])->middleware('guest');
Note: See TracChangeset for help on using the changeset viewer.