source: routes/web.php@ 249bf91

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

New feature - details for employee

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[c454c0f]1<?php
2
[75151c6]3use App\Http\Controllers\CrimeCaseController;
4use App\Http\Controllers\OfficerController;
5use App\Http\Controllers\PeopleController;
6use App\Http\Controllers\SessionsController;
[c454c0f]7use Illuminate\Support\Facades\Route;
[d9c4096]8use Illuminate\Support\Facades\Session;
[c454c0f]9
10/*
11|--------------------------------------------------------------------------
12| Web Routes
13|--------------------------------------------------------------------------
14|
15| Here is where you can register web routes for your application. These
16| routes are loaded by the RouteServiceProvider and all of them will
17| be assigned to the "web" middleware group. Make something great!
18|
19*/
20
21Route::get('/', function () {
22 return view('welcome');
23});
24Route::get('/login', function () {
25 return view('login');
[cf84baa]26
[c454c0f]27});
28
[cf84baa]29Route::post('/login', [SessionsController::class, 'store']);
30
31
32Route::get('logout', [SessionsController::class, 'logout']);
[75151c6]33
34
35
36Route::get('employees', [OfficerController::class, 'employees'])->middleware('guest');
[249bf91]37Route::get('/employees/{id}', [OfficerController::class, 'show']);
38
[75151c6]39Route::get('filter', [PeopleController::class, 'filter'])->middleware('guest');
[cf84baa]40Route::post('filter', [PeopleController::class, 'filter_post'])->middleware('guest');
41
[75151c6]42Route::get('cases', [CrimeCaseController::class, 'cases'])->middleware('guest');
[249bf91]43Route::get('register-statement', [CrimeCaseController::class, 'register_statement'])->middleware('guest');
44
[d9c4096]45Route::get('case/{wildcard}', [CrimeCaseController::class, 'case'])->middleware('guest');
[6b10b67]46
[249bf91]47Route::get('finished_cases', [CrimeCaseController::class, 'finished_cases'])->middleware('guest');
[75151c6]48
49
[6b10b67]50Route::get('register-policeman', [OfficerController::class, 'register'])->middleware('guest');
[92df8cd]51Route::post('register-policeman', [OfficerController::class, 'register_post'])->middleware('guest');
[6b10b67]52
[92df8cd]53Route::post('/get-person', [PeopleController::class, 'getPerson']);
Note: See TracBrowser for help on using the repository browser.