mirror of
https://github.com/anna-sara/lan_kiosk
synced 2026-09-03 10:35:01 +02:00
37 lines
1.4 KiB
PHP
37 lines
1.4 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('/register_customer', function () {
|
|
return Inertia::render('Form');
|
|
})->name('form')->middleware(['auth', 'verified']);
|
|
|
|
Route::get('/settings', function () {
|
|
return Inertia::render('Settings');
|
|
})->name('settings')->middleware(['auth', 'verified']);
|
|
|
|
Route::get('/swish', function () {
|
|
return Inertia::render('Swish');
|
|
})->name('swish');
|
|
|
|
|
|
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';
|