fix: add Body to Post request

This commit is contained in:
Johannes Kantz 2023-01-12 14:09:02 +01:00
parent 148f95087d
commit 95a2c3e3fe

View File

@ -30,7 +30,7 @@ class Router
$this->request = $_SERVER; $this->request = $_SERVER;
} }
if (isset($_POST)) { if (isset($_POST)) {
$this->request["body"] = $_POST; $this->request["body"] = json_decode(file_get_contents('php://input'), true);
} }
if (isset($_POST)) { if (isset($_POST)) {
$this->request["params"] = $_GET; $this->request["params"] = $_GET;