There's no need to encode json in the Router.
This commit is contained in:
@@ -25,7 +25,7 @@ class Router {
|
|||||||
$method = $_POST['method'];
|
$method = $_POST['method'];
|
||||||
$args = $_POST['args'];
|
$args = $_POST['args'];
|
||||||
$endpoint = new $endpoint();
|
$endpoint = new $endpoint();
|
||||||
$endpoint->$method(json_encode($args));
|
$endpoint->$method($args);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setToken() {
|
function setToken() {
|
||||||
|
Reference in New Issue
Block a user