Return created workflow with ID when using create-from-template endpoint
[MAILPOET-4533]
This commit is contained in:
@ -19,8 +19,8 @@ class WorkflowsCreateFromTemplateEndpoint extends Endpoint {
|
||||
}
|
||||
|
||||
public function handle(Request $request): Response {
|
||||
$this->createWorkflowFromTemplateController->createWorkflow((string)$request->getParam('slug'));
|
||||
return new Response();
|
||||
$workflow = $this->createWorkflowFromTemplateController->createWorkflow((string)$request->getParam('slug'));
|
||||
return new Response($workflow->toArray());
|
||||
}
|
||||
|
||||
public static function getRequestSchema(): array {
|
||||
|
Reference in New Issue
Block a user