Add the possibility to specify request schema

[MAILPOET-4207]
This commit is contained in:
Jan Jakes
2022-04-12 13:21:24 +02:00
committed by Veljko V
parent a06a8af0d5
commit c5ff597267
2 changed files with 13 additions and 0 deletions

View File

@@ -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 [];
}
}