<?php

use App\Http\Controllers\InstallController;
use Illuminate\Support\Facades\Route;

Route::middleware(['NotInstalledCheck'])->prefix('install')->group(function () {
    Route::get('initialize', [InstallController::class, 'index'])->name('install.initialize');
    Route::middleware(['xss'])->group(function () {
        Route::post('process', [InstallController::class, 'getInstall'])->name('install.process');
        Route::post('finalize', [InstallController::class, 'final'])->name('install.finalize');
    });
});

Route::get('admin/create-release', [InstallController::class, 'releaseForm'])->name('release.form');
Route::post('admin/create-release', [InstallController::class, 'createRelease'])->name('create.release');
