File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -1325,20 +1325,6 @@ public function success($result): Response
1325
1325
return new Response (Response::OK , $ result );
1326
1326
}
1327
1327
1328
- public function redirect (String $ url ): Response
1329
- {
1330
- $ response = new Response (Response::FOUND , '' );
1331
- $ response ->addHeader ('Location ' , $ url );
1332
- return $ response ;
1333
- }
1334
-
1335
- public function html (String $ url ): Response
1336
- {
1337
- $ response = new Response (Response::FOUND , '' );
1338
- $ response ->addHeader ('Location ' , $ url );
1339
- return $ response ;
1340
- }
1341
-
1342
1328
}
1343
1329
1344
1330
// file: src/Tqdev/PhpCrudApi/Database/ColumnConverter.php
@@ -5457,8 +5443,6 @@ public static function fromString(String $request): Request
5457
5443
class Response
5458
5444
{
5459
5445
const OK = 200 ;
5460
- const MOVED_PERMANENTLY = 301 ;
5461
- const FOUND = 302 ;
5462
5446
const UNAUTHORIZED = 401 ;
5463
5447
const FORBIDDEN = 403 ;
5464
5448
const NOT_FOUND = 404 ;
@@ -5546,7 +5530,6 @@ public function __toString(): String
5546
5530
'username ' => 'php-crud-api ' ,
5547
5531
'password ' => 'php-crud-api ' ,
5548
5532
'database ' => 'php-crud-api ' ,
5549
- 'middlewares ' => 'xsrf ' ,
5550
5533
]);
5551
5534
$ request = new Request ();
5552
5535
$ api = new Api ($ config );
Original file line number Diff line number Diff line change 11
11
'username ' => 'php-crud-api ' ,
12
12
'password ' => 'php-crud-api ' ,
13
13
'database ' => 'php-crud-api ' ,
14
- 'middlewares ' => 'xsrf ' ,
15
14
]);
16
15
$ request = new Request ();
17
16
$ api = new Api ($ config );
You can’t perform that action at this time.
0 commit comments