fix: add Body to Post request
This commit is contained in:
parent
148f95087d
commit
95a2c3e3fe
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user