File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/Tqdev/PhpCrudApi/Middleware Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3433,8 +3433,8 @@ private function setComponentSchema(String $tableName) /*: void*/
34333433 }
34343434 }
34353435 $ this ->openapi ->set ("components|schemas|list_of_ $ tableName|type " , "object " );
3436- $ this ->openapi ->set ("components|schemas|list_of_ $ tableName|properties|count |type " , "integer " );
3437- $ this ->openapi ->set ("components|schemas|list_of_ $ tableName|properties|count |format " , "int64 " );
3436+ $ this ->openapi ->set ("components|schemas|list_of_ $ tableName|properties|results |type " , "integer " );
3437+ $ this ->openapi ->set ("components|schemas|list_of_ $ tableName|properties|results |format " , "int64 " );
34383438 $ this ->openapi ->set ("components|schemas|list_of_ $ tableName|properties|records|type " , "array " );
34393439 $ this ->openapi ->set ("components|schemas|list_of_ $ tableName|properties|records|items| \$ref " , "#/components/schemas/single_ " . urlencode ($ tableName ));
34403440 }
@@ -4588,6 +4588,7 @@ public function __construct(Config $config)
45884588 $ responder = new Responder ();
45894589 $ router = new SimpleRouter ($ responder , $ cache , $ config ->getCacheTime ());
45904590 foreach ($ config ->getMiddlewares () as $ middleware => $ properties ) {
4591+ var_dump ($ middleware );
45914592 switch ($ middleware ) {
45924593 case 'cors ' :
45934594 new CorsMiddleware ($ router , $ responder , $ properties );
Original file line number Diff line number Diff line change 22namespace Tqdev \PhpCrudApi \Middleware ;
33
44use Tqdev \PhpCrudApi \Controller \Responder ;
5+ use Tqdev \PhpCrudApi \Middleware \Base \Middleware ;
56use Tqdev \PhpCrudApi \Record \ErrorCode ;
67use Tqdev \PhpCrudApi \Request ;
78use Tqdev \PhpCrudApi \Response ;
8- use Tqdev \PhpCrudApi \Middleware \Base \Middleware ;
99
1010class CorsMiddleware extends Middleware
1111{
You can’t perform that action at this time.
0 commit comments