41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Inertia\Inertia;
|
|
use App\Http\Controllers\PersonController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
| be assigned to the "web" middleware group. Make something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('/', function () {
|
|
return Inertia::render('welcome');
|
|
});
|
|
|
|
Route::get('/results', function () {
|
|
return Inertia::render('Results');
|
|
})->name('results');
|
|
|
|
Route::get('/dashboard', function () {
|
|
return Inertia::render('Dashboard');
|
|
})->middleware(['auth', 'verified'])->name('dashboard');
|
|
|
|
Route::get('/info', function () {
|
|
return Inertia::render('Info');
|
|
})->name('info');
|
|
|
|
Route::get('/doc', function () {
|
|
return Inertia::render('Doc');
|
|
})->name('doc');
|
|
|
|
Route::get('/all', [PersonController::class, 'index']);
|
|
Route::any('/search', [PersonController::class, 'search'])
|
|
->name('search');
|