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:
@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user