Service::all() ]); })->name("home"); Route::get("/info", function() { $config = Docker::info(); return Inertia::render('Info', [ "config" => $config ]); })->name("docker.info"); Route::get('/dashboard', function () { return Inertia::render('Dashboard'); })->middleware(['auth', 'verified'])->name('dashboard'); Route::middleware(['auth'])->group(function () { Route::get("/servers/create", [ServerController::class, 'create'])->name("servers.create"); Route::post("/servers", [ServerController::class, 'store'])->name("servers.store"); Route::get("/servers", [ServerController::class, 'index'])->name("servers.index"); Route::get("/servers/{id}", [ServerController::class, 'show'])->name("servers.show"); 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';