Upgrade to 3.1.0

This commit is contained in:
Bastian Allgeier
2019-03-19 11:07:14 +01:00
parent 418db4b09b
commit 6e074142f1
98 changed files with 1266 additions and 299 deletions

View File

@@ -51,9 +51,15 @@ return [
],
[
'pattern' => 'pages/(:any)/children/search',
'method' => 'POST',
'method' => 'GET|POST',
'action' => function (string $id) {
return $this->page($id)->children()->query($this->requestBody());
$pages = $this->page($id)->children();
if ($this->requestMethod() === 'GET') {
return $pages->search($this->requestQuery('q'));
} else {
return $pages->query($this->requestBody());
}
}
],
[