Refactor JSON API to use container for creating endpoints

[MAILPOET-1637]
This commit is contained in:
Rostislav Wolny
2018-11-14 21:23:32 +01:00
parent a42787d10d
commit d49b2a72a9
7 changed files with 57 additions and 21 deletions

View File

@ -261,7 +261,7 @@ class Initializer {
}
function setupJSONAPI() {
$json_api = API\API::JSON($this->access_control);
$json_api = API\API::JSON();
$json_api->init();
}