Add basic workflow endpoint with hello world message

[MAILPOET-4135]
This commit is contained in:
Jan Jakes
2022-02-10 11:02:00 +01:00
committed by Veljko V
parent 51d6b541e5
commit 9e8e3a37bb
3 changed files with 16 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
namespace MailPoet\Automation\API;
use MailPoet\Automation\API\Endpoints\WorkflowsEndpoint;
use MailPoet\Automation\Exceptions\Exception;
use MailPoet\Automation\WordPress;
use ReflectionClass;
@@ -20,6 +21,7 @@ class API {
/** @var array<string, class-string<Endpoint>> */
private $routes = [
'workflows' => WorkflowsEndpoint::class,
];
public function __construct(