File "Endpoint.php"
Full Path: /home/warrior1/public_html/wp-content/plugins/mailpoet/lib/API/REST/Endpoint.php
File size: 420 bytes
MIME-type: text/x-php
Charset: utf-8
<?php declare(strict_types = 1);
namespace MailPoet\API\REST;
if (!defined('ABSPATH')) exit;
use MailPoet\Validator\Schema;
abstract class Endpoint {
abstract public function handle(Request $request): Response;
public function checkPermissions(): bool {
return current_user_can('admin');
}
/** @return array<string, Schema> */
public static function getRequestSchema(): array {
return [];
}
}