refactor(router): Use Neuron object for route parameters

This commit is contained in:
kj
2025-10-16 12:04:05 -03:00
parent ac9a661bc0
commit 7e7ec68fd7
2 changed files with 13 additions and 12 deletions

View File

@@ -38,7 +38,7 @@ class Request extends Neuron
$this->put = new Neuron();
$this->patch = new Neuron();
$this->delete = new Neuron();
$this->params = new Neuron(Router::$currentParams);
$this->params = Router::$params ?? new Neuron();
$this->body = file_get_contents("php://input");
$contentType = isset($_SERVER["CONTENT_TYPE"]) ? trim($_SERVER["CONTENT_TYPE"]) : '';