Login #1
@ -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