2024-04-22 11:14:05 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
use phpseclib3\Net\SSH2;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Web Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
|
|
| be assigned to the "web" middleware group. Make something great!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2024-04-26 15:22:47 +00:00
|
|
|
Route::get('/login', function () {
|
|
|
|
return redirect(route('filament.admin.auth.login'));
|
|
|
|
})->name('login');
|
|
|
|
|
2024-04-22 11:14:05 +00:00
|
|
|
|
|
|
|
if (!file_exists(storage_path('installed'))) {
|
|
|
|
Route::get('/', \App\Livewire\Installer::class);
|
|
|
|
} else {
|
|
|
|
Route::get('/', function () {
|
|
|
|
return redirect('/admin');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
Route::get('/installer', \App\Livewire\Installer::class);
|
2024-04-30 21:52:50 +00:00
|
|
|
|
|
|
|
Route::get('backup/download', [\App\Http\Controllers\BackupDownloadController::class, 'download'])
|
|
|
|
->name('backup.download');
|