lan_kiosk/routes/web.php
2026-01-07 17:20:04 +01:00

32 lines
1.2 KiB
PHP

<?php
use App\Http\Controllers\ProfileController;
use Illuminate\Foundation\Application;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
use App\Http\Controllers\CustomerController;
use App\Http\Controllers\CustomerGroupController;
Route::get('/', function () {
return Inertia::render('Auth/Login');
});
Route::get('/dashboard', [CustomerController::class, 'index'])->middleware(['auth', 'verified'])->name('dashboard');
Route::get('/customer/{id}', [CustomerController::class, 'show'])->middleware(['auth', 'verified']);
Route::get('/customer-groups', [CustomerGroupController::class, 'index'])->middleware(['auth', 'verified'])->name('customer-groups');
Route::get('/form', function () {
return Inertia::render('Form');
})->name('form');
Route::get('/thankyou', function () {
return Inertia::render('Thankyou');
})->name('thankyou');
Route::middleware('auth')->group(function () {
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
});
require __DIR__.'/auth.php';