2025-10-22 17:09:48 +02:00
|
|
|
<?php
|
|
|
|
|
|
2026-04-08 15:17:05 +02:00
|
|
|
use App\Http\Controllers\DashboardController;
|
2025-10-22 17:09:48 +02:00
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
use Inertia\Inertia;
|
|
|
|
|
|
2025-11-26 16:16:22 +01:00
|
|
|
Route::get('/welcome', function () {
|
2025-10-22 17:09:48 +02:00
|
|
|
return Inertia::render('welcome');
|
|
|
|
|
})->name('home');
|
|
|
|
|
|
2025-11-26 16:16:22 +01:00
|
|
|
Route::get('/', function () {
|
|
|
|
|
return Inertia::render('maintenance');
|
|
|
|
|
})->name('maintenance');
|
|
|
|
|
|
2025-10-22 17:09:48 +02:00
|
|
|
Route::middleware(['auth', 'verified'])->group(function () {
|
2026-04-08 15:17:05 +02:00
|
|
|
Route::get('dashboard', [DashboardController::class, 'index'])->name('dashboard');
|
|
|
|
|
Route::post('dashboard/service-activation', [DashboardController::class, 'requestServiceActivation'])->name('dashboard.service-activation');
|
2025-10-22 17:09:48 +02:00
|
|
|
});
|
|
|
|
|
|
2026-04-10 11:00:56 +02:00
|
|
|
Route::get('/mentions-legales', fn () => Inertia::render('legal/mentions-legales'))->name('legal.mentions');
|
|
|
|
|
Route::get('/conditions-generales', fn () => Inertia::render('legal/cgu'))->name('legal.cgu');
|
|
|
|
|
Route::get('/confidentialite', fn () => Inertia::render('legal/confidentialite'))->name('legal.confidentialite');
|
|
|
|
|
|
2025-10-22 17:09:48 +02:00
|
|
|
require __DIR__.'/settings.php';
|
|
|
|
|
require __DIR__.'/auth.php';
|
|
|
|
|
require __DIR__.'/forms.php';
|
2026-04-07 17:09:25 +02:00
|
|
|
if (app()->environment('local')) {
|
|
|
|
|
require __DIR__.'/dev-routes.php';
|
|
|
|
|
}
|