headers->get('x-auth-token'); $security->isGranted('MAESTRO_PROJECT_PROJECTS_READ', $token); // TODO : delete route if not used after steps => check if front call this one out of steps // TODO : if route deleted, delete : /* - App\Application\Adapter\Query\Project\ReadFieldsQueryInterface - App\Application\Query\Project\ReadFieldsQuery - App\Application\View\Fields\FieldsetFieldView - App\Application\View\Fields\FieldAssocView - App\Application\View\ElementType\ElementTypeWithFieldsView */ $list = $readFieldsQuery->getProjectFields($id); if (!$list) { $body = [ 'type' => 'error', 'key' => 'getProjectFields', 'method' => 'post', 'data' => '', ]; $respond->statusNotFound(); } else { $body = [ 'type' => 'error', 'key' => 'getProjectFields', 'method' => 'post', 'data' => '', ]; $respond->statusOk(); } return $respond->createBody($body)->respond(); } }