Add the possibility to specify request schema
[MAILPOET-4207]
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace MailPoet\Automation\Engine\API;
|
||||
|
||||
use MailPoet\Validator\Schema;
|
||||
|
||||
use function current_user_can;
|
||||
|
||||
abstract class Endpoint {
|
||||
@@ -10,4 +12,9 @@ abstract class Endpoint {
|
||||
public function checkPermissions(): bool {
|
||||
return current_user_can('administrator');
|
||||
}
|
||||
|
||||
/** @return array<string, Schema> */
|
||||
public static function getRequestSchema(): array {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user