-
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5341 from getkirby/v4/release/alpha.4
4.0.0-alpha.4
- Loading branch information
Showing
181 changed files
with
4,334 additions
and
2,533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
// @codeCoverageIgnoreStart | ||
return [ | ||
'routes' => function ($kirby) { | ||
return [ | ||
[ | ||
'pattern' => 'query', | ||
'method' => 'POST|GET', | ||
'auth' => $kirby->option('kql.auth') !== false, | ||
'action' => function () use ($kirby) { | ||
$kql = '\Kirby\Kql\Kql'; | ||
|
||
if (class_exists($kql) === false) { | ||
return [ | ||
'code' => 500, | ||
'status' => 'error', | ||
'message' => 'KQL plugin is not installed', | ||
]; | ||
} | ||
|
||
$input = $kirby->request()->get(); | ||
$result = $kql::run($input); | ||
|
||
return [ | ||
'code' => 200, | ||
'result' => $result, | ||
'status' => 'ok', | ||
]; | ||
} | ||
] | ||
]; | ||
} | ||
]; | ||
// @codeCoverageIgnoreEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.