Skip to content

Commit f162331

Browse files
committed
update
1 parent 5c783b3 commit f162331

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.php

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
'password' => 'php-crud-api',
1818
'database' => 'php-crud-api',
1919
// 'debug' => false
20+
'customization.beforeHandler' => function ($operation, $tableName, $request, $environment) {
21+
$param = $request->getQueryParams();
22+
$param["filter"] = "field1,eq,value1";
23+
return $request->withQueryParams($param);
24+
}
25+
2026
]);
2127
$request = RequestFactory::fromGlobals();
2228
$api = new Api($config);

0 commit comments

Comments
 (0)