Settings JSX

- fixed issue with token in MailPoet Ajax / JSX
- added settings form with get/set
- reformated some code in subscribers.jsx
This commit is contained in:
Jonathan Labreuille
2015-08-21 13:12:14 +02:00
parent 072f813781
commit bf5d7f273b
6 changed files with 143 additions and 93 deletions

View File

@@ -24,7 +24,7 @@ class Router {
$class = ucfirst($_POST['endpoint']);
$endpoint = __NAMESPACE__ . "\\" . $class;
$method = $_POST['method'];
$data = $_POST['data'];
$data = isset($_POST['data']) ? $_POST['data'] : array();
$endpoint = new $endpoint();
$endpoint->$method($data);
}