24 lines
945 B
PHP
24 lines
945 B
PHP
<?php
|
|
|
|
use App\Http\Controllers\DashboardController;
|
|
use App\Http\Controllers\IndexController;
|
|
use App\Http\Controllers\NeedVerificationController;
|
|
use App\Http\Controllers\ProfileController;
|
|
use App\Http\Middleware\ProfileVerificationMiddleware;
|
|
use Illuminate\Support\Facades\Route;
|
|
use Inertia\Inertia;
|
|
|
|
Route::get('/', IndexController::class)->name('index');
|
|
|
|
Route::middleware(['auth', ProfileVerificationMiddleware::class])->group(function () {
|
|
Route::get('/need-verification', NeedVerificationController::class)->name('profile.need-verification');
|
|
|
|
Route::get('/dashboard', DashboardController::class)->name('dashboard');
|
|
|
|
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';
|