source: routes/web.php@ 6b10b67

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

Connected database

  • Property mode set to 100644
File size: 1.4 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;
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
[75151c6]27Route::post('logout', [SessionsController::class, 'destroy'])->middleware('auth');
28
29
30
31Route::get('employees', [OfficerController::class, 'employees'])->middleware('guest');
32Route::get('filter', [PeopleController::class, 'filter'])->middleware('guest');
33Route::get('cases', [CrimeCaseController::class, 'cases'])->middleware('guest');
[6b10b67]34Route::get('case', [CrimeCaseController::class, 'case'])->middleware('guest');
35
[75151c6]36Route::get('finished_cases', [CrimeCaseController::class, 'index'])->middleware('guest');
37
38
[6b10b67]39Route::get('register-policeman', [OfficerController::class, 'register'])->middleware('guest');
40Route::post('register-policeman', [OfficerController::class, 'register'])->middleware('guest');
41
42
Note: See TracBrowser for help on using the repository browser.