<?php

use Illuminate\Support\Facades\Route;

// Redirect the default route `/` to `/admin`
Route::get('/', function () {
    return redirect('/admin');
});

// // Define the /admin route
// Route::get('/admin', function () {
//     return view('admin.dashboard'); // Adjust the view as per your structure
// })->name('admin');

// Middleware-protected routes
Route::middleware([
    'auth:sanctum',
    config('jetstream.auth_session'),
    'verified',
])->group(function () {
    Route::get('/dashboard', function () {
        return view('dashboard');
    })->name('dashboard');
});

