[c454c0f] | 1 | <?php
|
---|
| 2 |
|
---|
[75151c6] | 3 | use App\Http\Controllers\CrimeCaseController;
|
---|
| 4 | use App\Http\Controllers\OfficerController;
|
---|
| 5 | use App\Http\Controllers\PeopleController;
|
---|
| 6 | use App\Http\Controllers\SessionsController;
|
---|
[c454c0f] | 7 | use Illuminate\Support\Facades\Route;
|
---|
| 8 |
|
---|
| 9 | /*
|
---|
| 10 | |--------------------------------------------------------------------------
|
---|
| 11 | | Web Routes
|
---|
| 12 | |--------------------------------------------------------------------------
|
---|
| 13 | |
|
---|
| 14 | | Here is where you can register web routes for your application. These
|
---|
| 15 | | routes are loaded by the RouteServiceProvider and all of them will
|
---|
| 16 | | be assigned to the "web" middleware group. Make something great!
|
---|
| 17 | |
|
---|
| 18 | */
|
---|
| 19 |
|
---|
| 20 | Route::get('/', function () {
|
---|
| 21 | return view('welcome');
|
---|
| 22 | });
|
---|
| 23 | Route::get('/login', function () {
|
---|
| 24 | return view('login');
|
---|
[cf84baa] | 25 |
|
---|
[c454c0f] | 26 | });
|
---|
| 27 |
|
---|
[cf84baa] | 28 | Route::post('/login', [SessionsController::class, 'store']);
|
---|
| 29 |
|
---|
| 30 |
|
---|
| 31 | Route::get('logout', [SessionsController::class, 'logout']);
|
---|
[75151c6] | 32 |
|
---|
| 33 |
|
---|
| 34 |
|
---|
| 35 | Route::get('employees', [OfficerController::class, 'employees'])->middleware('guest');
|
---|
| 36 | Route::get('filter', [PeopleController::class, 'filter'])->middleware('guest');
|
---|
[cf84baa] | 37 | Route::post('filter', [PeopleController::class, 'filter_post'])->middleware('guest');
|
---|
| 38 |
|
---|
[75151c6] | 39 | Route::get('cases', [CrimeCaseController::class, 'cases'])->middleware('guest');
|
---|
[6b10b67] | 40 | Route::get('case', [CrimeCaseController::class, 'case'])->middleware('guest');
|
---|
| 41 |
|
---|
[75151c6] | 42 | Route::get('finished_cases', [CrimeCaseController::class, 'index'])->middleware('guest');
|
---|
| 43 |
|
---|
| 44 |
|
---|
[6b10b67] | 45 | Route::get('register-policeman', [OfficerController::class, 'register'])->middleware('guest');
|
---|
| 46 | Route::post('register-policeman', [OfficerController::class, 'register'])->middleware('guest');
|
---|
| 47 |
|
---|
| 48 |
|
---|