Use WP-native params to support all REST API request formats

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

View File

@ -19,7 +19,7 @@ class WorkflowsPostEndpoint extends Endpoint {
public function handle(Request $request): Response {
// TODO: validation
$data = $request->getBody();
$data = $request->getParams();
$this->createController->createWorkflow($data);
return new Response();
}