Files
Investidor-V2/routes/investor-path.php
T
nala cef6e201c7
tests / ci (push) Canceled after 0s
versao nrgocios 2
2026-10-16 20:11:05 +02:00

25 lines
1.6 KiB
PHP

<?php
use App\Http\Controllers\InvestorPathController as Path;
use App\Http\Controllers\LegacyContentController;
use App\Http\Middleware\PrivateInvestmentResponse;
use App\Http\Middleware\VirtualDeskInstalled;
use Illuminate\Support\Facades\Route;
Route::middleware(['auth', 'verified', PrivateInvestmentResponse::class, VirtualDeskInstalled::class, 'throttle:60,1'])->prefix('investimentos')->group(function () {
Route::get('/', [Path::class, 'index']);
Route::get('/a-partir-do-parque/{zoneId}', [Path::class, 'zoneStart'])->whereUuid('zoneId');
Route::post('/{id}/parques',[Path::class,'zoneAttach'])->whereUuid('id');
Route::get('/a-partir-do-setor/{sectorSlug}', [Path::class, 'sectorStart']);
Route::post('/{id}/sectores', [Path::class, 'sectorAttach'])->whereUuid('id');
Route::get('/a-partir-de/{legacySlug}', [LegacyContentController::class, 'start'])->whereIn('legacySlug', array_keys(config('legacy_content.articles', [])));
Route::post('/{id}/conteudos', [LegacyContentController::class, 'attach'])->whereUuid('id');
Route::post('/', [Path::class, 'create']);
Route::get('/{id}', [Path::class, 'show'])->whereUuid('id');
Route::post('/{id}/fintech', [Path::class, 'fintech'])->whereUuid('id');
Route::post('/{id}/aplicabilidade', [Path::class, 'facts'])->whereUuid('id');
Route::post('/{id}/etapas/{code}', [Path::class, 'stage'])->whereUuid('id')->where('code', 'S(0[1-9]|1[0-9])');
Route::post('/{id}/resultados', [Path::class, 'tool'])->whereUuid('id');
Route::post('/{id}/tarefas', [Path::class, 'task'])->whereUuid('id');
});