name('login'); Route::post('/login/process', [AuthController::class, 'processLogin'])->name('login.process'); Route::post('/logout', [AuthController::class, 'logout'])->name('logout'); Route::get('/check-session', [AuthController::class, 'checkSession'])->name('check.session'); // Rute yang dilindungi auth Route::middleware(['firebase.auth'])->group(function () { Route::get('/', function () { return redirect()->route('dashboard'); }); Route::get('/dashboard', function () { return view('dashboard'); })->name('dashboard'); Route::get('/history', function () { return view('history'); })->name('history'); // Tambahkan route untuk melihat semua foto Route::get('/photos', [ESP32CamController::class, 'all'])->name('photos.all'); // Tambahkan route untuk pengaturan ESP32CAM Route::get('/esp32cam/settings', function () { return view('esp32cam.settings'); })->name('esp32cam.settings'); });