Maurits van der Schee 3 vuotta sitten
vanhempi
commit
9130f25b97
1 muutettua tiedostoa jossa 0 lisäystä ja 6 poistoa
  1. 0
    6
      src/index.php

+ 0
- 6
src/index.php Näytä tiedosto

@@ -17,12 +17,6 @@ $config = new Config([
17 17
     'password' => 'php-crud-api',
18 18
     'database' => 'php-crud-api',
19 19
     // '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
-
26 20
 ]);
27 21
 $request = RequestFactory::fromGlobals();
28 22
 $api = new Api($config);

Loading…
Peruuta
Tallenna