diff --git a/Router/Router.php b/Router/Router.php index 7926b5b..35d05fc 100644 --- a/Router/Router.php +++ b/Router/Router.php @@ -30,7 +30,7 @@ class Router $this->request = $_SERVER; } if (isset($_POST)) { - $this->request["body"] = $_POST; + $this->request["body"] = json_decode(file_get_contents('php://input'), true); } if (isset($_POST)) { $this->request["params"] = $_GET;