vite config : ignore /local and /public/** to improve perf
This commit is contained in:
parent
3c9eed7804
commit
c11a85e7f8
32 changed files with 1235 additions and 858 deletions
|
|
@ -1,16 +1,33 @@
|
|||
<?php
|
||||
|
||||
namespace Kirby\Kql;
|
||||
@include_once __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
use Kirby\Cms\App;
|
||||
class_alias('Kirby\Kql\Kql', 'Kql');
|
||||
|
||||
require_once __DIR__ . '/extensions/autoload.php';
|
||||
function kql($input, $model = null)
|
||||
{
|
||||
return Kql::run($input, $model);
|
||||
}
|
||||
|
||||
autoload('Kirby\\', __DIR__ . '/src/');
|
||||
Kirby::plugin('getkirby/kql', [
|
||||
'api' => [
|
||||
'routes' => function ($kirby) {
|
||||
return [
|
||||
[
|
||||
'pattern' => 'query',
|
||||
'method' => 'POST|GET',
|
||||
'auth' => $kirby->option('kql.auth') === false ? false : true,
|
||||
'action' => function () {
|
||||
$result = Kql::run(get());
|
||||
|
||||
require_once __DIR__ . '/extensions/aliases.php';
|
||||
require_once __DIR__ . '/extensions/helpers.php';
|
||||
|
||||
App::plugin('getkirby/kql', [
|
||||
'api' => require_once 'extensions/api.php'
|
||||
return [
|
||||
'code' => 200,
|
||||
'result' => $result,
|
||||
'status' => 'ok',
|
||||
];
|
||||
}
|
||||
]
|
||||
];
|
||||
}
|
||||
]
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue