Skip to content

Commit ca23131

Browse files
committed
Support reading views
1 parent 742f44d commit ca23131

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Tqdev/PhpCrudApi/Controller/RecordController.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ public function read(ServerRequestInterface $request): ResponseInterface
4242
if (!$this->service->hasTable($table)) {
4343
return $this->responder->error(ErrorCode::TABLE_NOT_FOUND, $table);
4444
}
45-
if ($this->service->getType($table) != 'table') {
46-
return $this->responder->error(ErrorCode::OPERATION_NOT_SUPPORTED, __FUNCTION__);
47-
}
4845
$id = RequestUtils::getPathSegment($request, 3);
4946
$params = RequestUtils::getParams($request);
5047
if (strpos($id, ',') !== false) {

0 commit comments

Comments
 (0)