Files
ntspi-app/app/Containers/AppStructure/UI/WEB/Controllers/PageController.php
T
2026-03-20 21:47:02 +05:00

18 lines
431 B
PHP
Executable File

<?php
namespace App\Containers\AppStructure\UI\WEB\Controllers;
use App\Containers\AppStructure\Actions\RenderPageAction;
use App\Ship\Controllers\Controller;
use Inertia\Response;
class PageController extends Controller
{
public function __construct(private readonly RenderPageAction $renderPageAction){}
public function render(string $path): Response
{
return $this->renderPageAction->run($path);
}
}