main
Last change
on this file since 75151c6 was 75151c6, checked in by bube-ristovska <ristovska725@…>, 12 months ago |
Added views initial
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[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');
|
---|
| 25 | });
|
---|
| 26 |
|
---|
[75151c6] | 27 | Route::post('logout', [SessionsController::class, 'destroy'])->middleware('auth');
|
---|
| 28 |
|
---|
| 29 |
|
---|
| 30 |
|
---|
| 31 | Route::get('employees', [OfficerController::class, 'employees'])->middleware('guest');
|
---|
| 32 | Route::get('filter', [PeopleController::class, 'filter'])->middleware('guest');
|
---|
| 33 | Route::get('cases', [CrimeCaseController::class, 'cases'])->middleware('guest');
|
---|
| 34 | Route::get('finished_cases', [CrimeCaseController::class, 'index'])->middleware('guest');
|
---|
| 35 |
|
---|
| 36 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.