fixed ErrorResponse call in API::setupPublic()

- removed empty constructors in updated endpoints
- added missing keys to Error class (unauthorized, forbidden)
This commit is contained in:
Jonathan Labreuille
2016-08-03 16:04:45 +02:00
parent c5b376bd21
commit 1c6fca7f83
4 changed files with 18 additions and 13 deletions

View File

@ -7,9 +7,6 @@ use \MailPoet\Models\Setting;
if(!defined('ABSPATH')) exit;
class Settings extends APIEndpoint {
function __construct() {
}
function get() {
return $this->successResponse(Setting::getAll());
}