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*/
3433
3433
}
3434
3434
}
3435
3435
$ 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 " );
3438
3438
$ this ->openapi ->set ("components|schemas|list_of_ $ tableName|properties|records|type " , "array " );
3439
3439
$ this ->openapi ->set ("components|schemas|list_of_ $ tableName|properties|records|items| \$ref " , "#/components/schemas/single_ " . urlencode ($ tableName ));
3440
3440
}
@@ -4588,6 +4588,7 @@ public function __construct(Config $config)
4588
4588
$ responder = new Responder ();
4589
4589
$ router = new SimpleRouter ($ responder , $ cache , $ config ->getCacheTime ());
4590
4590
foreach ($ config ->getMiddlewares () as $ middleware => $ properties ) {
4591
+ var_dump ($ middleware );
4591
4592
switch ($ middleware ) {
4592
4593
case 'cors ' :
4593
4594
new CorsMiddleware ($ router , $ responder , $ properties );
Original file line number Diff line number Diff line change 2
2
namespace Tqdev \PhpCrudApi \Middleware ;
3
3
4
4
use Tqdev \PhpCrudApi \Controller \Responder ;
5
+ use Tqdev \PhpCrudApi \Middleware \Base \Middleware ;
5
6
use Tqdev \PhpCrudApi \Record \ErrorCode ;
6
7
use Tqdev \PhpCrudApi \Request ;
7
8
use Tqdev \PhpCrudApi \Response ;
8
- use Tqdev \PhpCrudApi \Middleware \Base \Middleware ;
9
9
10
10
class CorsMiddleware extends Middleware
11
11
{
You can’t perform that action at this time.
0 commit comments