Add basic workflow endpoint with hello world message
[MAILPOET-4135]
This commit is contained in:
13
mailpoet/lib/Automation/API/Endpoints/WorkflowsEndpoint.php
Normal file
13
mailpoet/lib/Automation/API/Endpoints/WorkflowsEndpoint.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php declare(strict_types = 1);
|
||||
|
||||
namespace MailPoet\Automation\API\Endpoints;
|
||||
|
||||
use MailPoet\Automation\API\Endpoint;
|
||||
use MailPoet\Automation\API\Request;
|
||||
use MailPoet\Automation\API\Response;
|
||||
|
||||
class WorkflowsEndpoint extends Endpoint {
|
||||
public function get(Request $request): Response {
|
||||
return new Response(['message' => 'Hello world.']);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user