route('scenarios.show', Scenario::firstOrFail()); })->name('home'); Route::get('/scenarios/{scenario}', [ScenarioController::class, 'show'])->name('scenarios.show'); Route::patch('/scenarios/{scenario}', [ScenarioController::class, 'update'])->name('scenarios.update'); // Bucket routes (no auth required for MVP) Route::get('/scenarios/{scenario}/buckets', [BucketController::class, 'index'])->name('buckets.index'); Route::post('/scenarios/{scenario}/buckets', [BucketController::class, 'store'])->name('buckets.store'); Route::patch('/buckets/{bucket}', [BucketController::class, 'update'])->name('buckets.update'); Route::delete('/buckets/{bucket}', [BucketController::class, 'destroy'])->name('buckets.destroy'); Route::patch('/scenarios/{scenario}/buckets/priorities', [BucketController::class, 'updatePriorities'])->name('buckets.update-priorities'); // Stream routes (no auth required for MVP) Route::get('/scenarios/{scenario}/streams', [StreamController::class, 'index'])->name('streams.index'); Route::post('/scenarios/{scenario}/streams', [StreamController::class, 'store'])->name('streams.store'); Route::patch('/streams/{stream}', [StreamController::class, 'update'])->name('streams.update'); Route::delete('/streams/{stream}', [StreamController::class, 'destroy'])->name('streams.destroy'); Route::patch('/streams/{stream}/toggle', [StreamController::class, 'toggle'])->name('streams.toggle'); // Projection routes (no auth required for MVP) Route::post('/scenarios/{scenario}/projections/calculate', [ProjectionController::class, 'calculate'])->name('projections.calculate'); Route::post('/scenarios/{scenario}/projections/preview', [ProjectionController::class, 'preview'])->name('projections.preview'); Route::post('/scenarios/{scenario}/projections/apply', [ProjectionController::class, 'apply'])->name('projections.apply'); require __DIR__.'/settings.php';