source: routes/web.php@ cf84baa

main
Last change on this file since cf84baa was cf84baa, checked in by bube-ristovska <ristovska725@…>, 11 months ago

Added querries half done

  • Property mode set to 100644
File size: 1.5 KB
Line 
1<?php
2
3use App\Http\Controllers\CrimeCaseController;
4use App\Http\Controllers\OfficerController;
5use App\Http\Controllers\PeopleController;
6use App\Http\Controllers\SessionsController;
7use 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
20Route::get('/', function () {
21 return view('welcome');
22});
23Route::get('/login', function () {
24 return view('login');
25
26});
27
28Route::post('/login', [SessionsController::class, 'store']);
29
30
31Route::get('logout', [SessionsController::class, 'logout']);
32
33
34
35Route::get('employees', [OfficerController::class, 'employees'])->middleware('guest');
36Route::get('filter', [PeopleController::class, 'filter'])->middleware('guest');
37Route::post('filter', [PeopleController::class, 'filter_post'])->middleware('guest');
38
39Route::get('cases', [CrimeCaseController::class, 'cases'])->middleware('guest');
40Route::get('case', [CrimeCaseController::class, 'case'])->middleware('guest');
41
42Route::get('finished_cases', [CrimeCaseController::class, 'index'])->middleware('guest');
43
44
45Route::get('register-policeman', [OfficerController::class, 'register'])->middleware('guest');
46Route::post('register-policeman', [OfficerController::class, 'register'])->middleware('guest');
47
48
Note: See TracBrowser for help on using the repository browser.